mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Support for calling non-generic methods in a specific class. (#4156)
Use the specific parameter types for checking, and the specific return type as the type of the call.
This commit is contained in:
@@ -1084,8 +1084,10 @@ auto Context::GetBuiltinType(SemIR::BuiltinInstKind kind) -> SemIR::TypeId {
|
||||
return type_id;
|
||||
}
|
||||
|
||||
auto Context::GetFunctionType(SemIR::FunctionId fn_id) -> SemIR::TypeId {
|
||||
return GetCompleteTypeImpl<SemIR::FunctionType>(*this, fn_id);
|
||||
auto Context::GetFunctionType(SemIR::FunctionId fn_id,
|
||||
SemIR::GenericInstanceId instance_id)
|
||||
-> SemIR::TypeId {
|
||||
return GetCompleteTypeImpl<SemIR::FunctionType>(*this, fn_id, instance_id);
|
||||
}
|
||||
|
||||
auto Context::GetGenericClassType(SemIR::ClassId class_id) -> SemIR::TypeId {
|
||||
|
||||
Reference in New Issue
Block a user