mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
31 lines
509 B
Kotlin
31 lines
509 B
Kotlin
//ALLOW_AST_ACCESS
|
|
package test
|
|
|
|
interface Test {
|
|
|
|
companion object {
|
|
|
|
public val prop1 : Int = 10
|
|
|
|
public var prop2 : Int = 11
|
|
protected set
|
|
|
|
public val prop3: Int = 12
|
|
get() {
|
|
return $prop3
|
|
}
|
|
|
|
var prop4 : Int = 13
|
|
|
|
fun incProp4() {
|
|
$prop4++
|
|
}
|
|
|
|
public var prop5 : Int = 14
|
|
|
|
public var prop7 : Int = 20
|
|
set(i: Int) {
|
|
$prop7++
|
|
}
|
|
}
|
|
} |