Make ClassDescriptor#classId nullable
Local classes or anonymous objects do not have a class id. Use "!!" almost everywhere to make assertion explicit
This commit is contained in:
+1
-1
@@ -161,7 +161,7 @@ class DeserializedClassDescriptor(
|
||||
if (unresolved.isNotEmpty()) {
|
||||
c.components.errorReporter.reportIncompleteHierarchy(
|
||||
this@DeserializedClassDescriptor,
|
||||
unresolved.map { it.classId.asSingleFqName().asString() }
|
||||
unresolved.map { it.classId?.asSingleFqName()?.asString() ?: it.name.asString() }
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user