mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Overload resolution support for more kinds of candidate. (#6071)
* Add support for template candidates by calling the suitable `AddCandidate` function for them. * Add support for overloading on `*this` qualifiers by calling `AddMethodCandidate` when appropriate. * Make mapping from Carbon arguments to Clang arguments a little more faithful by mapping the Carbon expression category into the Clang value kind.
This commit is contained in:
@@ -183,9 +183,9 @@ library "[[@TEST_NAME]]";
|
||||
import Cpp library "struct_literal_call_arg.h";
|
||||
|
||||
fn F() {
|
||||
// CHECK:STDERR: fail_todo_import_struct_literal_call_arg.carbon:[[@LINE+7]]:3: error: call argument of type `{}` is not supported [CppCallArgTypeNotSupported]
|
||||
// CHECK:STDERR: fail_todo_import_struct_literal_call_arg.carbon:[[@LINE+7]]:11: error: call argument of type `{}` is not supported [CppCallArgTypeNotSupported]
|
||||
// CHECK:STDERR: Cpp.foo({});
|
||||
// CHECK:STDERR: ^~~~~~~~~~~
|
||||
// CHECK:STDERR: ^~
|
||||
// CHECK:STDERR: fail_todo_import_struct_literal_call_arg.carbon:[[@LINE+4]]:3: note: in call to Cpp function here [InCallToCppFunction]
|
||||
// CHECK:STDERR: Cpp.foo({});
|
||||
// CHECK:STDERR: ^~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user