mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
33 lines
588 B
Kotlin
Vendored
33 lines
588 B
Kotlin
Vendored
//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 field
|
|
}
|
|
|
|
var prop4 : Int = { 13 }()
|
|
|
|
fun incProp4() {
|
|
prop4++
|
|
}
|
|
|
|
public var prop5 : Int = { 14 }()
|
|
|
|
public var prop7 : Int = { 20 }()
|
|
set(i: Int) {
|
|
field++
|
|
}
|
|
|
|
public const val constProp8: Int = 80
|
|
}
|
|
} |