c7f3a31517
Can be used for implementing interfaces / abstract classes / sealed classes or extending open classes
15 lines
259 B
Plaintext
Vendored
15 lines
259 B
Plaintext
Vendored
// "Implement interface" "true"
|
|
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
|
|
|
|
interface Base {
|
|
fun foo(x: Int): Int
|
|
|
|
fun bar(y: String) = y
|
|
}
|
|
|
|
class BaseImpl : Base {
|
|
override fun foo(x: Int): Int {
|
|
throw UnsupportedOperationException()
|
|
}
|
|
}
|