cd9209a7ee
Most of these tests check the specific structure of lambdas when they are generated as classes, and they start to fail once invokedynamic lambdas are enabled by default.
13 lines
209 B
Kotlin
Vendored
13 lines
209 B
Kotlin
Vendored
// !LANGUAGE: +ProperVisibilityForCompanionObjectInstanceField
|
|
// LAMBDAS: CLASS
|
|
|
|
class Host {
|
|
private companion object {
|
|
fun foo() = 1
|
|
}
|
|
|
|
fun test() = { foo() }
|
|
}
|
|
|
|
// 1 synthetic access\$
|