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 -1
View File
@@ -1,5 +1,5 @@
fun Int?.optint() : Unit {}
val Int?.optval : Unit = Unit.VALUE
val Int?.optval : Unit get() = Unit.VALUE
fun <T: Any, E> T.foo(<warning>x</warning> : E, y : A) : T {
y.plus(1)
+1 -1
View File
@@ -25,4 +25,4 @@ object B {
fun PairParam<<error>T</error>, <error>T</error>>() {}
class PParam<<error>T</error>, <error>T</error>> {}
val <<error>T</error>, <error>T</error>> T.fooParam : Int = 1
val <<error>T</error>, <error>T</error>> T.fooParam : Int get() = 1