Improve error messages for break type coercion
This commit is contained in:
committed by
Veikka Tuominen
parent
8642770eff
commit
ec445fb6b8
@@ -25,3 +25,5 @@ export fn entry() void {
|
||||
// target=native
|
||||
//
|
||||
// :14:17: error: incompatible types: '*align(1:0:1) u2' and '*align(2:8:2) u2'
|
||||
// :15:14: note: type '*align(1:0:1) u2' here
|
||||
// :16:14: note: type '*align(2:8:2) u2' here
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -10,3 +10,5 @@ export fn entry() void {
|
||||
// target=native
|
||||
//
|
||||
// :5:11: error: incompatible types: 'void' and 'comptime_int'
|
||||
// :5:11: note: type 'void' here
|
||||
// :5:17: note: type 'comptime_int' here
|
||||
|
||||
@@ -12,3 +12,5 @@ export fn entry() void {
|
||||
// target=native
|
||||
//
|
||||
// :3:18: error: incompatible types: 'comptime_int' and 'void'
|
||||
// :4:14: note: type 'comptime_int' here
|
||||
// :5:16: note: type 'void' here
|
||||
|
||||
Reference in New Issue
Block a user