mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-19 00:20:25 +02:00
Fixed reification issues, mut-vs-imut method mangling
This commit is contained in:
parent
425284f023
commit
9a857cceb3
8 changed files with 31 additions and 18 deletions
|
@ -102,7 +102,7 @@ class LibClassA
|
|||
|
||||
public this()
|
||||
{
|
||||
Debug.WriteLine("LibA.LibClassA()\n");
|
||||
//Debug.WriteLine("LibA.LibClassA()\n");
|
||||
mA += 100;
|
||||
}
|
||||
|
||||
|
@ -118,7 +118,7 @@ class LibClassA
|
|||
|
||||
public static int32 GetVal(int32 val, int32 magic, String str)
|
||||
{
|
||||
Debug.WriteLine("GetVal: {}", str);
|
||||
//Debug.WriteLine("GetVal: {}", str);
|
||||
sMagic += magic;
|
||||
return val;
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace Tests
|
|||
}
|
||||
|
||||
[Test]
|
||||
public static void Hey()
|
||||
public static void TestBasics()
|
||||
{
|
||||
ClassB cc = scope ClassC();
|
||||
ClassB cb = cc;
|
||||
|
@ -64,6 +64,7 @@ namespace Tests
|
|||
|
||||
StructA sa = default;
|
||||
let sa2 = sa;
|
||||
|
||||
Test.Assert(sa[0] == 2);
|
||||
Test.Assert(sa2[0] == 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue