avoid conflict with master branch

This commit is contained in:
Andrew Kelley 2020-02-09 22:44:23 -05:00
parent acdf4048b4
commit 27575d19c8
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -3,6 +3,12 @@ const builtin = @import("builtin");
const Target = @import("std").Target;
pub fn addCases(cases: *tests.CompileErrorContext) void {
cases.addTest("dependency loop in top-level decl with @TypeInfo",
\\export const foo = @typeInfo(@This());
, &[_][]const u8{
"tmp.zig:1:20: error: dependency loop detected",
});
cases.add("function call assigned to incorrect type",
\\export fn entry() void {
\\ var arr: [4]f32 = undefined;
@ -27,12 +33,6 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
"tmp.zig:3:18: error: expected type '[]i32', found 'anyerror!i32",
});
cases.addTest("dependency loop in top-level decl with @TypeInfo",
\\export const foo = @typeInfo(@This());
, &[_][]const u8{
"tmp.zig:1:20: error: dependency loop detected",
});
cases.addTest("non-exhaustive enums",
\\const A = enum {
\\ a,