[Commonizer] Fix internal error when TAs have different expanded classes
^KT-41643
This commit is contained in:
+1
-2
@@ -132,8 +132,7 @@ internal class CommonizationVisitor(
|
|||||||
if (expandedClassId.packageFqName.isUnderStandardKotlinPackages)
|
if (expandedClassId.packageFqName.isUnderStandardKotlinPackages)
|
||||||
return null // this case is not supported
|
return null // this case is not supported
|
||||||
|
|
||||||
val expandedClassNode = root.cache.classes[expandedClassId]
|
val expandedClassNode = root.cache.classes[expandedClassId] ?: return null
|
||||||
?: error("Can't find expanded class node with class ID $expandedClassId for type alias $classId")
|
|
||||||
val expandedClass = expandedClassNode.targetDeclarations[index]
|
val expandedClass = expandedClassNode.targetDeclarations[index]
|
||||||
?: error("Can't find expanded class with class ID $expandedClassId and index $index for type alias $classId")
|
?: error("Can't find expanded class with class ID $expandedClassId and index $index for type alias $classId")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user