mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: fix for 61440 (lib/AST/GenericEnvironment) no generic environment provided for type with type parameter
This commit is contained in:
@@ -2575,9 +2575,9 @@ static bool fixItOverrideDeclarationTypesImpl(
|
||||
});
|
||||
}
|
||||
|
||||
auto resultType = subscript->getDeclContext()->mapTypeIntoContext(
|
||||
subscript->getElementInterfaceType());
|
||||
auto baseResultType = baseSubscript->getDeclContext()->mapTypeIntoContext(
|
||||
auto resultType =
|
||||
subscript->mapTypeIntoContext(subscript->getElementInterfaceType());
|
||||
auto baseResultType = baseSubscript->mapTypeIntoContext(
|
||||
baseSubscript->getElementInterfaceType());
|
||||
fixedAny |= checkType(resultType, ParamDecl::Specifier::Default,
|
||||
baseResultType, ParamDecl::Specifier::Default,
|
||||
|
||||
Reference in New Issue
Block a user