fail_todo_form_thunk.carbon 1.0 KB

123456789101112131415161718192021222324252627
  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. // INCLUDE-FILE: toolchain/testing/testdata/min_prelude/form.carbon
  6. //
  7. // AUTOUPDATE
  8. // TIP: To test this file alone, run:
  9. // TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/impl/fail_todo_form_thunk.carbon
  10. // TIP: To dump output, run:
  11. // TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/impl/fail_todo_form_thunk.carbon
  12. interface I {
  13. let T:! type;
  14. let Fm:! Core.Form();
  15. // CHECK:STDERR: fail_todo_form_thunk.carbon:[[@LINE+4]]:8: error: semantics TODO: `Support symbolic form bindings` [SemanticsTodo]
  16. // CHECK:STDERR: fn F(x:? Fm, y: T);
  17. // CHECK:STDERR: ^~~~~~
  18. // CHECK:STDERR:
  19. fn F(x:? Fm, y: T);
  20. }
  21. class C {
  22. impl as I where .T = () and .Fm = form(ref ()) {
  23. fn F(x:? form(ref ()), ());
  24. }
  25. }