fail_missing_nested.carbon 588 B

123456789101112131415161718192021
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // AUTOUPDATE
  6. package ExplorerTest api;
  7. namespace A;
  8. namespace A.B;
  9. namespace A.B.C;
  10. fn A.B.C.
  11. // CHECK:STDERR: COMPILATION ERROR: fail_missing_nested.carbon:[[@LINE+1]]: name 'D' has not been declared in namespace A.B.C
  12. D
  13. // Don't combine with the previous line. This test is verifying that the
  14. // diagnostic points at the right token.
  15. .E.F() {}
  16. fn Main() -> i32 {
  17. return 0;
  18. }