| ... | ... | @@ -1,6 +1,15 @@ |
| 1 | 1 | const tests = @import("tests.zig"); |
| 2 | 2 | |
| 3 | 3 | pub fn addCases(cases: *tests.CompileErrorContext) void { |
| 4 | cases.add( |
| 5 | "attempted implicit cast from T to [*]const T", |
| 6 | \\export fn entry() void { |
| 7 | \\ const x: [*]const bool = true; |
| 8 | \\} |
| 9 | , |
| 10 | ".tmp_source.zig:2:30: error: expected type '[*]const bool', found 'bool'", |
| 11 | ); |
| 12 | |
| 4 | 13 | cases.add( |
| 5 | 14 | "dereference unknown length pointer", |
| 6 | 15 | \\export fn entry(x: [*]i32) i32 { |