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

Improved generic type parsing (particularly 'a<b>.c < d` cases)

This commit is contained in:
Brian Fiete 2022-02-06 08:21:53 -05:00
parent 4c10fc0e42
commit e508991dce
4 changed files with 104 additions and 90 deletions

View file

@ -443,6 +443,16 @@ namespace Tests
output
}
class Foo<T>
{
public static T value;
public class Inner<T2> where Foo<T> : Object
{
public static T value2;
}
}
[Test]
public static void TestSizedArrays()
{
@ -460,6 +470,12 @@ namespace Tests
Test.Assert(len == 3);
len = CheckString<"Abcd">("Abcd");
Test.Assert(len == 4);
int val = 123;
bool b = Foo<int>.value < val;
b = Foo<int>.value > val;
b = Foo<int>.Inner<float>.value2 < 1.2f;
b = Foo<int>.Inner<float>.value2 > 2.3f;
}
}
}