5ea6f20192
As all these issues aren't reproducible in K2, we may count them as fixed. Related to KT-53478 #KT-66229 Fixed #KT-66243 Fixed #KT-66272 Fixed
26 lines
420 B
Kotlin
Vendored
26 lines
420 B
Kotlin
Vendored
// ISSUE: KT-66243
|
|
// IGNORE_BACKEND_K1: ANY
|
|
// Reason: Could not load module <Error module>
|
|
|
|
class A<T>
|
|
class Test<T> {
|
|
fun add(a: T) {}
|
|
var lambdaInVariable: ((A<T>) -> Unit)? = null
|
|
}
|
|
|
|
fun <T> builder(x: Test<T>.() -> Unit): Test<T> {
|
|
return Test<T>().apply(x)
|
|
}
|
|
|
|
fun check() {
|
|
val x = builder {
|
|
add(1)
|
|
lambdaInVariable = {}
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
check()
|
|
return "OK"
|
|
}
|