mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-16 15:24:10 +02:00
More extern constraints work
This commit is contained in:
parent
d35ef0e1e8
commit
35505d905a
7 changed files with 34 additions and 10 deletions
|
@ -116,9 +116,20 @@ namespace Tests
|
|||
return 3;
|
||||
}
|
||||
|
||||
public struct Entry
|
||||
{
|
||||
public static int operator<=>(Entry lhs, Entry rhs)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public static void TestBasics()
|
||||
{
|
||||
List<Entry> list = scope .();
|
||||
list.Sort();
|
||||
|
||||
ClassA ca = scope .();
|
||||
ClassB cb = scope .();
|
||||
Test.Assert(LibA.LibA0.GetVal(ca) == 123);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue