mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
15 lines
266 B
Kotlin
15 lines
266 B
Kotlin
//ALLOW_AST_ACCESS
|
|
package test
|
|
|
|
trait A {
|
|
internal fun f() : Int
|
|
internal val v : Int
|
|
public var p : Int
|
|
}
|
|
|
|
class B : A {
|
|
override fun f(): Int = throw UnsupportedOperationException()
|
|
public override var p: Int = 0
|
|
override val v: Int = 0
|
|
}
|