Better recovering after reporting error about several statements on the line
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
fun f1() {
|
||||
val a = 12 if (a == 12) {
|
||||
}
|
||||
}
|
||||
|
||||
fun f2() {
|
||||
val a = 12 for (a in array(12, 13)) {
|
||||
}
|
||||
}
|
||||
|
||||
fun f3() {
|
||||
if (12) {
|
||||
} class A {
|
||||
}
|
||||
|
||||
val b2 : Int annotation class Annotation
|
||||
}
|
||||
|
||||
fun f4() {
|
||||
val a = 12 val b = 12
|
||||
val a1 = 12val b1 = 12
|
||||
}
|
||||
|
||||
fun f5() {
|
||||
a::b.c::d
|
||||
}
|
||||
|
||||
fun f6() {
|
||||
3 + 4 33 1
|
||||
}
|
||||
|
||||
fun f7() = 12 fun f8() = 12
|
||||
|
||||
fun f9() {
|
||||
fun local1() = 12 fun local2() = 12
|
||||
fun local3() {} open fun local4() = 12
|
||||
}
|
||||
|
||||
class GA class GB
|
||||
fun f10() {
|
||||
class LA{} class LB
|
||||
class LC class LD
|
||||
}
|
||||
|
||||
fun f11() {
|
||||
val a1: Int as 12
|
||||
val a2: Int in 12
|
||||
val a3: Int !in 12
|
||||
val a4: Int is 12
|
||||
val a5: Int !is 12
|
||||
val a6: Int as 12
|
||||
val a7: Int as? 12
|
||||
}
|
||||
|
||||
fun f12() {
|
||||
val a = 12 return
|
||||
}
|
||||
|
||||
val g: Int get() { return 12 }
|
||||
fun f13() {
|
||||
val l: Int get() { return 12 }
|
||||
}
|
||||
|
||||
fun f13() {
|
||||
val l: Int by Some
|
||||
}
|
||||
Reference in New Issue
Block a user