| 123456789101112131415 |
- // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
- // Exceptions. See /LICENSE for license information.
- // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
- // A minimal prelude for testing conversion between types.
- package Core library "prelude";
- interface As(Dest:! type) {
- fn Convert[self: Self]() -> Dest;
- }
- interface ImplicitAs(Dest:! type) {
- // TODO: extend As(Dest);
- fn Convert[self: Self]() -> Dest;
- }
|