mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
34 lines
433 B
Kotlin
Vendored
34 lines
433 B
Kotlin
Vendored
interface A
|
|
|
|
@Retention(AnnotationRetention.BINARY)
|
|
annotation class Anno
|
|
|
|
interface B {
|
|
fun foo(a: String)
|
|
}
|
|
|
|
interface C {
|
|
val bar: Int
|
|
}
|
|
|
|
@Anno
|
|
interface D {
|
|
fun baz(p: String) = 5
|
|
private fun test(a: String) = "123"
|
|
}
|
|
|
|
interface E {
|
|
class InsideE
|
|
}
|
|
|
|
@Anno
|
|
interface F {
|
|
var bar: String
|
|
get() = "123"
|
|
set(value) {}
|
|
|
|
private var baz: String
|
|
get() = "123"
|
|
set(value) {}
|
|
}
|