41fd43b5e5
Bug:
fun loop(var times : Int) {
while(times > 0) {
val u : (value : Int) -> Unit = { // This arrow is confusing the lookahead
System.out?.println(it)
}
u(times--)
}
}
17 lines
460 B
Plaintext
17 lines
460 B
Plaintext
fun v(<!UNUSED_PARAMETER!>x<!> : Int, <!UNUSED_PARAMETER!>y<!> : String, vararg <!UNUSED_PARAMETER!>f<!> : Long) {}
|
|
fun v1(vararg <!UNUSED_PARAMETER!>f<!> : (Int) -> Unit) {}
|
|
|
|
fun test() {
|
|
v(1, "")
|
|
v(1, "", 1)
|
|
v(1, "", 1, 1, 1)
|
|
v(1, "", 1, 1, 1)
|
|
|
|
v1()
|
|
v1({})
|
|
v1({}, {})
|
|
v1({}, <!ERROR_COMPILE_TIME_VALUE!>1<!>, {})
|
|
v1({}, {}, {it})
|
|
v1({}) <!VARARG_OUTSIDE_PARENTHESES!>{}<!>
|
|
v1 <!VARARG_OUTSIDE_PARENTHESES!>{}<!>
|
|
} |