mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
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:
committed by
Alexander Udalov
parent
8ae03b54d9
commit
5c807266f6
@@ -1,3 +1,4 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// WITH_REFLECT
|
||||
// FILE: main.kt
|
||||
|
||||
Reference in New Issue
Block a user