JVM IR: fix origin of file class in FileClassLowering

IrDeclarationOrigin.FILE_CLASS is used in CallableReferenceLowering to
generate correct declaration owner.

Many reflection tests start to fail with this commit because they are
now treating callable references to top level declarations as Kotlin
symbols and fail because there's no JVM signature for them; this is
fixed in subsequent commits (previously, they worked because without
Kotlin metadata, these files were treated as Java classes)
This commit is contained in:
Alexander Udalov
2019-01-30 18:47:01 +01:00
committed by Alexander Udalov
parent 8ae03b54d9
commit 5c807266f6
23 changed files with 22 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JVM_IR
// !LANGUAGE: +MultiPlatformProjects
// WITH_REFLECT
// FILE: main.kt