mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-01 08:35:00 +01:00
This resolves some todos, and makes `Convert` safer to call, which unblocks some changes in pattern matching that I'm working on. Assisted-by: Gemini 3.1 Pro via Antigravity
22 lines
749 B
Plaintext
22 lines
749 B
Plaintext
// 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
|
|
//
|
|
// INCLUDE-FILE: toolchain/testing/testdata/min_prelude/none.carbon
|
|
//
|
|
// AUTOUPDATE
|
|
// TIP: To test this file alone, run:
|
|
// TIP: bazel test //toolchain/testing:file_test --test_arg=--file_tests=toolchain/check/testdata/class/incomplete_ref.carbon
|
|
// TIP: To dump output, run:
|
|
// TIP: bazel run //toolchain/testing:file_test -- --dump_output --file_tests=toolchain/check/testdata/class/incomplete_ref.carbon
|
|
|
|
class Class;
|
|
|
|
class IncompleteRefSelf {
|
|
fn F[ref self: Class]();
|
|
}
|
|
|
|
fn CallIncompleteRefSelf(p: Class*) {
|
|
p->(IncompleteRefSelf.F)();
|
|
}
|