Warn about suspend extension functional types as supertypes
They will become error in 2.0 #KT-58529 Fixed #KT-49175 Fixed
This commit is contained in:
@@ -104,6 +104,9 @@ val KotlinType.isNonExtensionFunctionType: Boolean
|
||||
val KotlinType.isExtensionFunctionType: Boolean
|
||||
get() = isFunctionType && isTypeAnnotatedWithExtensionFunctionType
|
||||
|
||||
val KotlinType.isSuspendExtensionFunctionType: Boolean
|
||||
get() = isSuspendFunctionType && isTypeAnnotatedWithExtensionFunctionType
|
||||
|
||||
val KotlinType.isBuiltinExtensionFunctionalType: Boolean
|
||||
get() = isBuiltinFunctionalType && isTypeAnnotatedWithExtensionFunctionType
|
||||
|
||||
|
||||
Reference in New Issue
Block a user