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.
36 lines
594 B
Kotlin
Vendored
36 lines
594 B
Kotlin
Vendored
fun foo(a: Any?): Int {
|
|
<!SYNTAX!>@<!>{ ->
|
|
return<!SYNTAX!>@<!>
|
|
}
|
|
|
|
<!SYNTAX!>@<!> while(a == null) {
|
|
if (true) {
|
|
break<!SYNTAX!>@<!>
|
|
}
|
|
else {
|
|
continue<!SYNTAX!>@<!>
|
|
}
|
|
}
|
|
|
|
var <!ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE!>b<!> = 1
|
|
|
|
<!UNUSED_VALUE!>(<!SYNTAX!>@<!> b) =<!> 2
|
|
|
|
return<!SYNTAX!>@<!> 1
|
|
}
|
|
|
|
open class A {
|
|
fun foo() {}
|
|
}
|
|
|
|
class B : A() {
|
|
fun bar() {
|
|
this<!SYNTAX!>@<!>.foo()
|
|
super<!SYNTAX!>@<!>.foo()
|
|
}
|
|
}
|
|
|
|
fun bar(f: () -> Unit) = f
|
|
fun test() {
|
|
bar <!SYNTAX!>@<!>{}
|
|
} |