[FE 1.0] Don't fail with exception on unresolved type with type argument
^KT-50223 Fixed
This commit is contained in:
committed by
teamcity
parent
87dc1f7fde
commit
372879b8e7
+3
-2
@@ -136,10 +136,11 @@ class CompletionModeCalculator {
|
||||
fixationDirectionsCollector: MutableSet<FixationDirectionForVariable>
|
||||
) {
|
||||
val typeArgumentsCount = type.argumentsCount()
|
||||
if (typeArgumentsCount > 0) {
|
||||
val typeConstructor = type.typeConstructor()
|
||||
if (typeArgumentsCount > 0 && typeArgumentsCount == typeConstructor.parametersCount()) {
|
||||
for (position in 0 until typeArgumentsCount) {
|
||||
val argument = type.getArgument(position)
|
||||
val parameter = type.typeConstructor().getParameter(position)
|
||||
val parameter = typeConstructor.getParameter(position)
|
||||
|
||||
if (argument.isStarProjection())
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user