You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: toolchain/check/testdata/function/declaration/no_prelude/name_poisoning.carbon
+67-1
Original file line number
Diff line number
Diff line change
@@ -285,13 +285,29 @@ interface A {
285
285
class X {
286
286
extend impl asA {
287
287
fnF() { return; }
288
-
// CHECK:STDERR: fail_using_poisoned_name_in_impl_outside_class.carbon:[[@LINE+3]]:10: error: `impl as` can only be used in a class [ImplAsOutsideClass]
288
+
// CHECK:STDERR: fail_using_poisoned_name_in_impl_outside_class.carbon:[[@LINE+4]]:10: error: `impl as` can only be used in a class [ImplAsOutsideClass]
289
289
// CHECK:STDERR: impl as B {}
290
290
// CHECK:STDERR: ^~
291
+
// CHECK:STDERR:
291
292
impl asB {}
292
293
}
293
294
}
294
295
296
+
// --- fail_no_poison_when_lookup_fails.carbon
297
+
298
+
library "[[@TEST_NAME]]";
299
+
300
+
namespace N;
301
+
// Here we fail to find C so we don't poison anything.
302
+
// CHECK:STDERR: fail_no_poison_when_lookup_fails.carbon:[[@LINE+3]]:11: error: name `C` not found [NameNotFound]
303
+
// CHECK:STDERR: fn N.F(x: C);
304
+
// CHECK:STDERR: ^
305
+
fnN.F(x: C);
306
+
307
+
// No failures below because nothing was poisoned.
0 commit comments