Disallow extension properties with backing fields

#KT-1682 Fixed
This commit is contained in:
Alexander Udalov
2014-05-28 19:17:31 +04:00
parent ea31f372aa
commit d78d4bc44c
72 changed files with 297 additions and 578 deletions
@@ -1,15 +1,14 @@
class Test {
private val Int.foo: String = "OK"
get() {
val a = $foo
return "OK"
}
private val Int.foo: String
get() {
return "OK"
}
fun test(): String {
return 1.foo
}
fun test(): String {
return 1.foo
}
}
fun box(): String {
return Test().test()
}
return Test().test()
}