1
0
Fork 0
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:
Brian Fiete 2020-10-22 17:25:19 -07:00
parent 425284f023
commit 9a857cceb3
8 changed files with 31 additions and 18 deletions

View file

@ -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;
}

View file

@ -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);
}