73799e2c3c
It's done with similar constructions where possible trying to preserve intended behavior. Some usages are removed because they test exactly the feature that we are going to drop soon.
22 lines
336 B
Kotlin
Vendored
22 lines
336 B
Kotlin
Vendored
class TestFunctionLiteral {
|
|
val sum: (Int)->Int = { x: Int ->
|
|
sum(x - 1) + x
|
|
}
|
|
}
|
|
|
|
open class A(val a: A)
|
|
|
|
class TestObjectLiteral {
|
|
val obj: A = object: A(obj) {
|
|
init {
|
|
val x = obj
|
|
}
|
|
fun foo() {
|
|
val y = obj
|
|
}
|
|
}
|
|
}
|
|
|
|
class TestOther {
|
|
val x: Int = x + 1
|
|
} |