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
@@ -187,7 +187,7 @@ object KotlinJavascriptSerializationUtil {
|
||||
}
|
||||
|
||||
private fun getFileName(classDescriptor: ClassDescriptor): String {
|
||||
return KotlinJavascriptSerializedResourcePaths.getClassMetadataPath(classDescriptor.classId)
|
||||
return KotlinJavascriptSerializedResourcePaths.getClassMetadataPath(classDescriptor.classId!!)
|
||||
}
|
||||
|
||||
fun toContentMap(module: ModuleDescriptor): Map<String, ByteArray> {
|
||||
|
||||
Reference in New Issue
Block a user