Put using underscored type arguments under a feature

This commit is contained in:
Victor Petukhov
2021-10-22 11:56:58 +03:00
parent 1073adbbf0
commit 5508d40371
14 changed files with 50 additions and 1 deletions
@@ -77,6 +77,8 @@ class PSICallResolver(
) {
private val givenCandidatesName = Name.special("<given candidates>")
private val arePartiallySpecifiedTypeArgumentsEnabled = languageVersionSettings.supportsFeature(LanguageFeature.PartiallySpecifiedTypeArguments)
val defaultResolutionKinds = setOf(
NewResolutionOldInference.ResolutionKind.Function,
NewResolutionOldInference.ResolutionKind.Variable,
@@ -689,7 +691,7 @@ class PSICallResolver(
val typeReference = projection.typeReference ?: return@map TypeArgumentPlaceholder
if (typeReference.isPlaceholder) {
if (typeReference.isPlaceholder && arePartiallySpecifiedTypeArgumentsEnabled) {
val resolvedAnnotations = typeResolver.resolveTypeAnnotations(context.trace, context.scope, typeReference)
.apply(ForceResolveUtil::forceResolveAllContents)