unary_op.carbon.tmpl 360 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. HEADER
  7. package User;
  8. class C {};
  9. impl C as Core.INTERFACE {
  10. fn Op[self: C]() -> C {
  11. return {};
  12. }
  13. }
  14. fn TestOp(a: C) -> C {
  15. return OPa;
  16. }