diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-07-07 13:36:03 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-07-07 13:39:48 -0700 |
| commit | 34f64432b0f1d125a5abfb750861013ac4a5d5a2 (patch) | |
| tree | 931dcc868a3ea9cb5b53e2f4791d391e639f9734 /test/behavior/basic.zig | |
| parent | aa52bb83271edc626cd931cf9e8dfbcfc90d4cf2 (diff) | |
| download | zig-34f64432b0f1d125a5abfb750861013ac4a5d5a2.tar.gz zig-34f64432b0f1d125a5abfb750861013ac4a5d5a2.zip | |
remove `usingnamespace` from the language
closes #20663
Diffstat (limited to 'test/behavior/basic.zig')
| -rw-r--r-- | test/behavior/basic.zig | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/test/behavior/basic.zig b/test/behavior/basic.zig index c8166a06ab..bcd72d5176 100644 --- a/test/behavior/basic.zig +++ b/test/behavior/basic.zig @@ -1107,27 +1107,6 @@ test "inline call of function with a switch inside the return statement" { try expect(S.foo(1) == 1); } -test "ambiguous reference error ignores current declaration" { - const S = struct { - const foo = 666; - - const a = @This(); - const b = struct { - const foo = a.foo; - const bar = struct { - bar: u32 = b.foo, - }; - - comptime { - _ = b.foo; - } - }; - - usingnamespace b; - }; - try expect(S.b.foo == 666); -} - test "pointer to zero sized global is mutable" { const S = struct { const Thing = struct {}; |
