mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Removed analyse top pass. Remove sub module tracking. Fix errors where ? should be ~
This commit is contained in:
@@ -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 '~'
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
@@ -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())!;
|
||||
|
||||
Reference in New Issue
Block a user