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
This commit is contained in:
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
// "Create abstract function 'bar'" "true"
|
||||
// ERROR: Class 'Foo' is not abstract and does not implement abstract member public abstract fun bar(): Unit defined in I
|
||||
|
||||
interface I {
|
||||
fun bar()
|
||||
}
|
||||
|
||||
class Foo : I {
|
||||
fun foo() {
|
||||
bar()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user