mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
KT-19175: Compiler generates different bytecode when classes are compiled separately or together #KT-19175 Fixed
20 lines
630 B
Kotlin
Vendored
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 |