Report unsupported on using underscored type argument if the corresponding feature is disabled
This commit is contained in:
@@ -691,7 +691,7 @@ class PSICallResolver(
|
||||
|
||||
val typeReference = projection.typeReference ?: return@map TypeArgumentPlaceholder
|
||||
|
||||
if (typeReference.isPlaceholder && arePartiallySpecifiedTypeArgumentsEnabled) {
|
||||
if (typeReference.isPlaceholder) {
|
||||
val resolvedAnnotations = typeResolver.resolveTypeAnnotations(context.trace, context.scope, typeReference)
|
||||
.apply(ForceResolveUtil::forceResolveAllContents)
|
||||
|
||||
@@ -700,6 +700,10 @@ class PSICallResolver(
|
||||
context.trace.report(Errors.UNSUPPORTED.on(annotationElement, "annotations on an underscored type argument"))
|
||||
}
|
||||
|
||||
if (!arePartiallySpecifiedTypeArgumentsEnabled) {
|
||||
context.trace.report(Errors.UNSUPPORTED.on(typeReference, "underscored type argument"))
|
||||
}
|
||||
|
||||
return@map TypeArgumentPlaceholder
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user