812d3d9ce6
will not work with Java 9.
30 lines
386 B
Kotlin
Vendored
30 lines
386 B
Kotlin
Vendored
package defaultImpls;
|
|
|
|
interface AllAbstract {
|
|
val c: Int
|
|
fun <T> f(t: T): T
|
|
|
|
val g: Int
|
|
|
|
var g2: String
|
|
}
|
|
|
|
interface NonAbstractFun {
|
|
fun f() {
|
|
|
|
}
|
|
}
|
|
|
|
interface NonAbstractFunWithExpressionBody {
|
|
fun f() = 3
|
|
}
|
|
|
|
interface NonAbstractProperty {
|
|
val c: Int get() = 3
|
|
}
|
|
|
|
interface NonAbstractPropertyWithBody {
|
|
val c: Int get() {
|
|
return 3
|
|
}
|
|
} |