KT-12152 : constructor consistency: handle open property accessing

This commit is contained in:
Mikhail Glukhikh
2015-08-11 16:17:29 +03:00
parent f7b5d67543
commit 422ea4c6cb
8 changed files with 96 additions and 10 deletions
@@ -0,0 +1,14 @@
open class Base {
open var x: Int
open var y: Int
constructor() {
<!DEBUG_INFO_LEAKING_THIS!>x<!> = 42
this.<!DEBUG_INFO_LEAKING_THIS!>y<!> = 24
val temp = this.<!DEBUG_INFO_LEAKING_THIS!>x<!>
this.<!DEBUG_INFO_LEAKING_THIS!>x<!> = <!DEBUG_INFO_LEAKING_THIS!>y<!>
<!DEBUG_INFO_LEAKING_THIS!>y<!> = temp
}
}