KT-510 this. allows initialization without backing field

This commit is contained in:
svtk
2011-11-21 14:35:08 +04:00
parent 3915d24660
commit a00ad38a1c
5 changed files with 54 additions and 6 deletions
@@ -0,0 +1,18 @@
//KT-510 `this.` allows initialization without backing field
namespace kt510
public open class Identifier1() {
var field : Boolean
{
<!INITIALIZATION_USING_BACKING_FIELD!>field<!> = false; // error
}
}
public open class Identifier2() {
var field : Boolean
{
<!INITIALIZATION_USING_BACKING_FIELD!>this.field<!> = false;
}
}