Support extensions in functional supertypes
Under a flag for now.
This commit is contained in:
committed by
teamcityserver
parent
10101dc2b4
commit
3f8fa3149b
@@ -583,7 +583,9 @@ public class BodyResolver {
|
||||
if (classDescriptor != null) {
|
||||
if (ErrorUtils.isError(classDescriptor)) continue;
|
||||
|
||||
if (FunctionTypesKt.isExtensionFunctionType(supertype)) {
|
||||
if (FunctionTypesKt.isExtensionFunctionType(supertype) &&
|
||||
!languageVersionSettings.supportsFeature(LanguageFeature.FunctionalTypeWithExtensionAsSupertype)
|
||||
) {
|
||||
trace.report(SUPERTYPE_IS_EXTENSION_FUNCTION_TYPE.on(typeReference));
|
||||
}
|
||||
else if (FunctionTypesKt.isSuspendFunctionType(supertype) &&
|
||||
|
||||
Reference in New Issue
Block a user