fail_bad_member_kind.carbon 520 B

12345678910111213141516171819
  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. interface A {
  8. // TODO: Use `let T:! type;` here once we support it.
  9. fn T();
  10. }
  11. external impl i32 as A {
  12. // CHECK:STDERR: SYNTAX ERROR: explorer/testdata/impl/fail_bad_member_kind.carbon:[[@LINE+1]]: syntax error, unexpected CLASS
  13. class T {}
  14. }
  15. fn Main() -> i32 { return 0; }