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.
21 lines
312 B
Kotlin
Vendored
21 lines
312 B
Kotlin
Vendored
// !LANGUAGE: +ProperVisibilityForCompanionObjectInstanceField
|
|
// LAMBDAS: CLASS
|
|
// FILE: Base.kt
|
|
package a
|
|
|
|
open class Base {
|
|
protected companion object {
|
|
fun foo() = 1
|
|
}
|
|
}
|
|
|
|
// FILE: Host.kt
|
|
import a.*
|
|
|
|
class Host : Base() {
|
|
fun test() = { foo() }
|
|
}
|
|
|
|
// @Host.class:
|
|
// 1 synthetic access\$
|