KT-4140 VerifyError: Property in class object

#KT-4140  Fixed
This commit is contained in:
Mikhael Bogdanov
2013-10-29 12:21:50 +04:00
parent 12bdf557fa
commit fb39217dc3
4 changed files with 33 additions and 5 deletions
@@ -0,0 +1,16 @@
class TestObject()
{
class object {
var prop: Int = 1
get() = $prop++
}
}
fun box(): String {
if (TestObject.prop != 1) return "fail 1"
if (TestObject.prop != 2) return "fail 2"
return "OK"
}