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

Better handling of undef const expressions

This commit is contained in:
Brian Fiete 2022-04-18 07:57:15 -07:00
parent 071dfa8e09
commit 1a93660416
4 changed files with 42 additions and 1 deletions

View file

@ -121,6 +121,18 @@ namespace Tests
return total;
}
public static int StrTest<T>(T param2)
where T : const String
{
return StrTest2(param2);
}
public static int StrTest2<T>(T param1)
where T : const String
{
return param1.Length;
}
[Test]
public static void TestBasics()
{
@ -136,6 +148,7 @@ namespace Tests
Test.Assert(BigNum<const 3>.N == 3);
Test.Assert(Test("test", 1, 2, 3) == 10);
Test.Assert(StrTest("ABCDE") == 5);
}
}
}