aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/basic.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-07-07 13:36:03 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-07-07 13:39:48 -0700
commit34f64432b0f1d125a5abfb750861013ac4a5d5a2 (patch)
tree931dcc868a3ea9cb5b53e2f4791d391e639f9734 /test/behavior/basic.zig
parentaa52bb83271edc626cd931cf9e8dfbcfc90d4cf2 (diff)
downloadzig-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.zig21
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 {};