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:
Alexey Sedunov
2017-11-21 17:39:54 +03:00
parent 7e3ca4734d
commit 84c6f9bf45
9 changed files with 104 additions and 15 deletions
@@ -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()
}
}