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--)
}
}
18 lines
282 B
Plaintext
18 lines
282 B
Plaintext
//KT-510 `this.` allows initialization without backing field
|
|
|
|
package kt510
|
|
|
|
public open class Identifier1() {
|
|
var field : Boolean
|
|
{
|
|
field = false; // error
|
|
}
|
|
}
|
|
|
|
|
|
public open class Identifier2() {
|
|
var field : Boolean
|
|
{
|
|
this.field = false;
|
|
}
|
|
} |