KT-351 Distinguish statement and expression positions
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
//KT-510 `this.` allows initialization without backing field
|
||||
|
||||
namespace kt510
|
||||
|
||||
public open class Identifier1() {
|
||||
var field : Boolean
|
||||
{
|
||||
field = false; // error
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public open class Identifier2() {
|
||||
var field : Boolean
|
||||
{
|
||||
this.field = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user