Files
Alexander Udalov 4f2551497d Kapt+JVM_IR: do not require KtFile for each generated class
In particular, JVM IR doesn't provide KtFile for a multifile facade in
JvmDeclarationOrigin (JVM backend provides KtFile of a random multifile
part). This led to multifile classes being completely ignored in the
JVM_IR version of kapt. Now they are generated correctly and the changed
test passes, but there's a _ir.txt expectation file because the order of
'foo' and 'bar' is different (which is not a problem).
2023-01-13 02:38:40 +01:00

23 lines
273 B
Kotlin
Vendored

// WITH_STDLIB
// FILE: a.kt
@file:JvmMultifileClass
@file:JvmName("M1")
package test
fun foo() {}
// FILE: b.kt
@file:JvmMultifileClass
@file:JvmName("M1")
package test
fun bar() {}
// FILE: c.kt
@file:JvmMultifileClass
@file:JvmName("M2")
package test
fun baz() {}