diff options
| author | joachimschmidt557 <joachim.schmidt557@outlook.com> | 2021-06-23 23:52:46 +0800 |
|---|---|---|
| committer | joachimschmidt557 <joachim.schmidt557@outlook.com> | 2021-08-04 09:31:46 +0200 |
| commit | fcdc5c6b3ccca5cc4e1c2353f280068d1c427153 (patch) | |
| tree | 51b10352b916837e2f80f80096f36ee36a5f6c9e /test/cases.zig | |
| parent | 0bef271e75657195145a519199ce12b97db246f4 (diff) | |
| download | zig-fcdc5c6b3ccca5cc4e1c2353f280068d1c427153.tar.gz zig-fcdc5c6b3ccca5cc4e1c2353f280068d1c427153.zip | |
stage2 Sema: Resolve source locations of @TypeOf parameters
Diffstat (limited to 'test/cases.zig')
| -rw-r--r-- | test/cases.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/cases.zig b/test/cases.zig index 840ee7a4ac..0f28c2fe63 100644 --- a/test/cases.zig +++ b/test/cases.zig @@ -288,7 +288,11 @@ pub fn addCases(ctx: *TestContext) !void { \\pub fn main() void { \\ _ = @TypeOf(true, 1); \\} - , &[_][]const u8{":2:9: error: incompatible types: 'bool' and 'comptime_int'"}); + , &[_][]const u8{ + ":2:9: error: incompatible types: 'bool' and 'comptime_int'", + ":2:17: note: type 'bool' here", + ":2:23: note: type 'comptime_int' here", + }); } { |
