1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 15:24:10 +02:00

Fixed error with generic method call on a static field

This commit is contained in:
Brian Fiete 2020-09-03 10:24:42 -07:00
parent 70c7067bb0
commit 24aaa22f7a
5 changed files with 22 additions and 8 deletions

View file

@ -173,6 +173,16 @@ namespace Tests
delete val;
}
public class ClassE
{
public static Self Instance = new ClassE() ~ delete _;
public int CreateSystem<T>()
{
return 999;
}
}
[Test]
public static void TestBasics()
{
@ -207,6 +217,8 @@ namespace Tests
ClassD cd = scope .();
ClassD cd2 = scope .();
Test.Assert(LibA.LibA2.CheckEq(cd, cd2));
Test.Assert(ClassE.Instance.CreateSystem<int>() == 999);
}
}