Files
kotlin/compiler/testData/writeFlags/inline/lostInnerClass3.kt
Mikhael Bogdanov ff676c050f Properly generate inner classes when compiling source for inline
KT-19175: Compiler generates different bytecode when classes are compiled separately or together

 #KT-19175 Fixed
2017-07-26 20:31:14 +02:00

20 lines
630 B
Kotlin
Vendored

interface Introspector {
fun test() {
class SchemaRetriever(val transaction: String) {
inline fun inSchema(crossinline modifier: (String) -> Unit) =
{ modifier(transaction) }()
internal fun retrieve() {
inSchema { schema -> "OK" }
}
}
}
}
// TESTED_OBJECT_KIND: innerClass
// TESTED_OBJECTS: Introspector$test$SchemaRetriever, SchemaRetriever
// FLAGS: ACC_FINAL, ACC_PUBLIC, ACC_STATIC
// TESTED_OBJECT_KIND: innerClass
// TESTED_OBJECTS: Introspector$test$SchemaRetriever, DefaultImpls
// FLAGS: ACC_FINAL, ACC_PUBLIC, ACC_STATIC