ReadClassDataTest: extension properties
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user