ReadClassDataTest: extension properties

This commit is contained in:
Stepan Koltsov
2012-01-12 01:25:47 +04:00
parent f4bf59ff32
commit 200fd78574
8 changed files with 134 additions and 56 deletions
@@ -0,0 +1,4 @@
package test
val Int.itIs: Int
get() = this
@@ -0,0 +1,6 @@
package test
class ExtPropInClass {
val Int.itIs: Int
get() = this
}
@@ -0,0 +1,5 @@
package test
var Int.ggg: Int
get() = throw Exception()
set(p) = throw Exception()
@@ -0,0 +1,7 @@
package test
class ExtPropInClass {
var Int.itIs: Int
get() = throw Exception()
set(p: Int) = throw Exception()
}