mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed some issues with types with extensions and emitted methods
This commit is contained in:
parent
d6af5b826f
commit
f7efa3466a
4 changed files with 28 additions and 9 deletions
|
@ -79,7 +79,7 @@ namespace Tests
|
|||
class ClassF
|
||||
{
|
||||
public int mA = 123;
|
||||
public append String mB = .(mA);
|
||||
public append String mB = .(1024);
|
||||
public int mC = 234;
|
||||
}
|
||||
|
||||
|
|
|
@ -2,6 +2,18 @@
|
|||
|
||||
using System;
|
||||
|
||||
namespace System
|
||||
{
|
||||
extension RefCounted<T>
|
||||
{
|
||||
public static RefCounted<T> Attach(RefCounted<T> val)
|
||||
{
|
||||
val.AddRef();
|
||||
return val;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
namespace System
|
||||
{
|
||||
public extension Event<T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue