Files
kotlin-fork/compiler/testData/codegen/boxInline/anonymousObject/constructorVisibilityInLambda.kt
T
2022-07-14 23:24:18 +02:00

20 lines
245 B
Kotlin
Vendored

// FILE: 1.kt
package test
internal class A {
inline fun doSomething(s: String): String {
return {
s
}.let { it() }
}
}
// FILE: 2.kt
import test.*
fun box(): String {
return A().doSomething("OK")
}