mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
21 lines
591 B
Kotlin
Vendored
21 lines
591 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
interface Introspector {
|
|
|
|
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$SchemaRetriever$inSchema$1, SchemaRetriever
|
|
// FLAGS: ACC_FINAL, ACC_PUBLIC, ACC_STATIC
|
|
|
|
// TESTED_OBJECT_KIND: innerClass
|
|
// TESTED_OBJECTS: Introspector$SchemaRetriever$inSchema$1, DefaultImpls
|
|
// ABSENT: true |