Don't discriminate generics during callable references resolution

^KT-49038 Fixed
This commit is contained in:
Victor Petukhov
2021-10-01 15:19:57 +03:00
committed by TeamCityServer
parent 23f6c29efc
commit abd2507107
8 changed files with 72 additions and 1 deletions
@@ -197,7 +197,7 @@ class KotlinCallResolver(
callableReferenceArgumentResolver.callableReferenceOverloadConflictResolver.chooseMaximallySpecificCandidates(
refinedCandidates as Collection<CallableReferenceResolutionCandidate>,
CheckArgumentTypesMode.CHECK_VALUE_ARGUMENTS,
discriminateGenerics = true
discriminateGenerics = false
)
} else {
overloadingConflictResolver.chooseMaximallySpecificCandidates(