Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/call/abstract/inAbstractSuperclass.kt
Alexey Sedunov 84c6f9bf45 Create from Usage: Fix choosing superclass for abstract member
This applies to cases when non-existing member is called without
explicit receiver

 #KT-21332 Fixed
2017-11-30 12:49:25 +03:00

10 lines
257 B
Kotlin
Vendored

// "Create abstract function 'bar'" "true"
// ERROR: Class 'Foo' is not abstract and does not implement abstract base class member public abstract fun bar(): Unit defined in A
abstract class A
class Foo : A() {
fun foo() {
<caret>bar()
}
}