Rename: ConeTypeVariableType.lookupTag -> typeConstructor
This commit is contained in:
committed by
Space Team
parent
1ceec4d6d7
commit
53ab32e0fb
+2
-2
@@ -468,8 +468,8 @@ internal class KtSymbolByFirBuilder(
|
||||
}
|
||||
|
||||
is ConeTypeVariableType -> {
|
||||
val diagnostic = when ( val typeParameter = coneType.lookupTag.originalTypeParameter) {
|
||||
null -> ConeSimpleDiagnostic("Cannot infer parameter type for ${coneType.lookupTag.debugName}")
|
||||
val diagnostic = when ( val typeParameter = coneType.typeConstructor.originalTypeParameter) {
|
||||
null -> ConeSimpleDiagnostic("Cannot infer parameter type for ${coneType.typeConstructor.debugName}")
|
||||
else -> ConeCannotInferTypeParameterType((typeParameter as ConeTypeParameterLookupTag).typeParameterSymbol)
|
||||
}
|
||||
buildKtType(ConeErrorType(diagnostic, isUninferredParameter = true, attributes = coneType.attributes))
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ internal class KtFirTypeErrorType(
|
||||
override fun tryRenderAsNonErrorType(): String? = withValidityAssertion {
|
||||
when (val diagnostic = coneType.diagnostic) {
|
||||
is ConeCannotInferTypeParameterType -> diagnostic.typeParameter.name.asString()
|
||||
is ConeTypeVariableTypeIsNotInferred -> diagnostic.typeVariableType.lookupTag.debugName
|
||||
is ConeTypeVariableTypeIsNotInferred -> diagnostic.typeVariableType.typeConstructor.debugName
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user