fail_base_as_declared_name.carbon 719 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. namespace N;
  7. // CHECK:STDERR: fail_base_as_declared_name.carbon:[[@LINE+7]]:6: ERROR: Expected identifier after `.`.
  8. // CHECK:STDERR: fn N.base() {}
  9. // CHECK:STDERR: ^~~~
  10. // CHECK:STDERR:
  11. // CHECK:STDERR: fail_base_as_declared_name.carbon:[[@LINE+3]]:6: ERROR: Semantics TODO: `Error recovery from keyword name.`.
  12. // CHECK:STDERR: fn N.base() {}
  13. // CHECK:STDERR: ^~~~
  14. fn N.base() {}
  15. // CHECK:STDOUT: --- fail_base_as_declared_name.carbon
  16. // CHECK:STDOUT:
  17. // CHECK:STDOUT: file {}
  18. // CHECK:STDOUT: