[NI] Fix extension function check after commonization

`isExtensionFunction` property is false for suspend functions
This commit is contained in:
Pavel Kirpichenkov
2020-10-12 17:16:55 +03:00
parent c53011dd04
commit 9dd3d8fb14
9 changed files with 56 additions and 1 deletions
@@ -680,7 +680,7 @@ interface ClassicTypeSystemContext : TypeSystemInferenceExtensionContext, TypeSy
override fun KotlinTypeMarker.isExtensionFunctionType(): Boolean {
require(this is KotlinType, this::errorMessage)
return this.isExtensionFunctionType
return this.isBuiltinExtensionFunctionalType
}
override fun KotlinTypeMarker.extractArgumentsForFunctionalTypeOrSubtype(): List<KotlinTypeMarker> {