Removed analyse top pass. Remove sub module tracking. Fix errors where ? should be ~

This commit is contained in:
Christoffer Lerno
2026-02-02 12:20:34 +01:00
parent d509b4caa1
commit 6bc606a9b1
10 changed files with 20 additions and 33 deletions

View File

@@ -25,5 +25,5 @@ fn void foo2()
fn void test()
{
int? z = 2;
Foo*? w = &&(Foo?){ z, 0 }; // #error: please remove the '?'
Foo*? w = &&(Foo?){ z, 0 }; // #error: please remove the '~'
}

View File

@@ -18,7 +18,7 @@ fn int main(String[] args)
if (catch foo)
{
// This is issue 2036
foo = foo ?? faults::DISTRACTED_BY_CAT_PICTURES; // #error: did you perhaps forget a '?'
foo = foo ?? faults::DISTRACTED_BY_CAT_PICTURES; // #error: did you perhaps forget a '~'
}
return 0;

View File

@@ -15,7 +15,7 @@ fn double? divide(int a, int b)
}
// Rethrowing an error uses "?" suffix
// Rethrowing an error uses "!" suffix
fn void? testMayError()
{
divide(foo(), bar())!;