Don't add initializer to extension property on override/implement

This commit is contained in:
Alexander Udalov
2014-05-28 20:12:19 +04:00
parent d78d4bc44c
commit a78b7fb31f
6 changed files with 40 additions and 15 deletions
@@ -4,5 +4,6 @@ trait A {
class B : A {
override val String.prop: Int = 0
}
override val String.prop: Int
get() = 0
}
@@ -0,0 +1,7 @@
trait A {
var Int.foo : Double
}
class B : A {
<caret>
}
@@ -0,0 +1,11 @@
trait A {
var Int.foo : Double
}
class B : A {
override var Int.foo: Double
get() = 0.0
set(value) {
}
}