Fixes to lib7, added parallel test structure.

This commit is contained in:
Christoffer Lerno
2025-02-23 13:53:04 +01:00
parent 3a1aa8bdf0
commit 4f72bc4be9
1228 changed files with 63192 additions and 56 deletions

View File

@@ -0,0 +1,14 @@
module test;
def Func = fn void (bool);
fn bool foo (String) => true;
fn void bar(Func func) => func(false);
fn void main()
{
Func funcX = &foo; // #error: Implicitly casting
bar(&foo); // #error: Implicitly casting
Func func = fn bool (String) { return true; }; // #error: which doesn't match
bar(fn bool (String) { return true; }); // #error: which doesn't match
}