[IR] Fix isFileClass checker

This commit is contained in:
Roman Artemev
2020-09-01 17:27:55 +03:00
parent 91b99da7a0
commit fdbc657656

View File

@@ -37,7 +37,7 @@ val IrDeclarationParent.kotlinFqName: FqName
get() = when (this) {
is IrPackageFragment -> this.fqName
is IrClass -> {
if (origin == IrDeclarationOrigin.FILE_CLASS) {
if (isFileClass) {
parent.kotlinFqName
} else {
parent.kotlinFqName.child(nameForIrSerialization)