mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-27 08:00:09 +01:00
This fixes some bugs in each, where the fixes had only been made on one side of the switch or the other. Also don't forget to instantiate deduced generic arguments in a call when we read them out of the AST.
20 lines
568 B
Plaintext
20 lines
568 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
|
|
//
|
|
// AUTOUPDATE
|
|
// RUN: %{not} %{explorer-run}
|
|
// RUN: %{not} %{explorer-run-trace}
|
|
|
|
package ExplorerTest api;
|
|
|
|
class A {
|
|
fn F[self: Self]() -> i32;
|
|
}
|
|
|
|
fn Main() -> i32 {
|
|
var a: A = {};
|
|
// CHECK:STDERR: RUNTIME ERROR: {{.*}}/explorer/testdata/class/fail_call_undefined_method.carbon:[[@LINE+1]]: attempt to call function `F` that has not been defined
|
|
return a.F();
|
|
}
|