KT-38027 Support Code Vision feature in Kotlin
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// MODE: inheritors
|
||||
|
||||
<# block [ 3 Implementations] #>
|
||||
interface SomeInterface {}
|
||||
interface SomeOtherInterface : SomeInterface {} // <== (1): interface extension
|
||||
class SomeClass : SomeInterface { // <== (2): interface implementation
|
||||
fun acceptsInterface(param: SomeInterface) {}
|
||||
fun main() = acceptsInterface(object : SomeInterface {}) // <== (3): anonymous class instance
|
||||
}
|
||||
Reference in New Issue
Block a user