Merge pull request #13744 from Vexu/stage2-fixes

Improve error messages, fix dependency loops
This commit is contained in:
Andrew Kelley
2022-12-03 00:42:11 -05:00
parent fd57487e35
commit af958e95cc
40 changed files with 377 additions and 94 deletions

View File

@@ -0,0 +1,19 @@
fn f2(u64) u64 {
return x;
}
fn f3(*x) u64 {
return x;
}
fn f1(x) u64 {
return x;
}
// error
// backend=stage2
// target=native
//
// :1:7: error: missing parameter name
// :4:7: error: missing parameter name
// :7:7: error: missing parameter name or type
// :7:7: note: if this is a name, annotate its type 'x: T'
// :7:7: note: if this is a type, give it a name '<name>: x'