Improve error messages for break type coercion

This commit is contained in:
John Schmidt
2023-02-25 20:44:53 +01:00
committed by Veikka Tuominen
parent 8642770eff
commit ec445fb6b8
9 changed files with 199 additions and 67 deletions

View File

@@ -31,7 +31,9 @@ export fn entry() void {
// target=native
//
// :2:21: error: incompatible types: 'i32' and 'void'
// :6:25: note: type 'i32' here
// :6:15: error: incompatible types: 'i32' and 'void'
// :2:31: note: type 'i32' here
// :12:16: error: expected type 'tmp.h.T', found 'void'
// :11:15: note: struct declared here
// :18:9: error: incompatible types: 'void' and 'tmp.k.T'