| ... | ... | @@ -1039,33 +1039,6 @@ test "inline call of function with a switch inside the return statement" { |
| 1039 | 1039 | try expect(S.foo(1) == 1); |
| 1040 | 1040 | } |
| 1041 | 1041 | |
| 1042 | | test "namespace lookup ignores decl causing the lookup" { |
| 1043 | | if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO |
| 1044 | | if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO |
| 1045 | | if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest; |
| 1046 | | |
| 1047 | | if (builtin.zig_backend == .stage2_llvm) { |
| 1048 | | // regressed with LLVM 15 |
| 1049 | | // https://github.com/ziglang/zig/issues/12681 |
| 1050 | | return error.SkipZigTest; |
| 1051 | | } |
| 1052 | | |
| 1053 | | const S = struct { |
| 1054 | | fn Mixin(comptime T: type) type { |
| 1055 | | return struct { |
| 1056 | | fn foo() void { |
| 1057 | | const set = std.EnumSet(T.E).init(undefined); |
| 1058 | | _ = set; |
| 1059 | | } |
| 1060 | | }; |
| 1061 | | } |
| 1062 | | |
| 1063 | | const E = enum { a, b }; |
| 1064 | | usingnamespace Mixin(@This()); |
| 1065 | | }; |
| 1066 | | _ = S.foo(); |
| 1067 | | } |
| 1068 | | |
| 1069 | 1042 | test "ambiguous reference error ignores current declaration" { |
| 1070 | 1043 | const S = struct { |
| 1071 | 1044 | const foo = 666; |