Files
kotlin-fork/idea/testData/codeInsight/codeVision/InterfaceAbstractMethodImplementation.kt
T
2020-06-05 19:15:34 +02:00

16 lines
384 B
Kotlin
Vendored

// MODE: inheritors
<# block [ 1 Implementation] #>
interface SomeInterface {
<# block [ 2 Implementations] #>
fun interfaceMethodA()
}
<# block [ 1 Inheritor] #>
open class SomeClass : SomeInterface {
<# block [ 1 Override] #>
override fun interfaceMethodA() {} // <== (1)
}
class SomeDerivedClass : SomeClass() {
override fun interfaceMethodA() {} // <== (2)
}