namespace_alias.carbon 478 B

1234567891011121314151617181920212223242526
  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. // CHECK:STDOUT: result: 0
  7. package ExplorerTest api;
  8. namespace N;
  9. namespace N.M;
  10. fn N.F() {}
  11. fn N.M.FM() {}
  12. alias A = N;
  13. alias AM = N.M;
  14. alias N.A = N.M;
  15. alias N.A2 = N;
  16. fn Main() -> i32 {
  17. A.F();
  18. AM.FM();
  19. N.A.FM();
  20. A.A2.A2.A2.A2.A2.A2.A2.F();
  21. return 0;
  22. }