[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
open class A {
|
||||
protected fun foo() {}
|
||||
|
||||
init {
|
||||
B.foo() // Ok, receiver (B.Companion) is subtype of A
|
||||
(B.Companion).foo()
|
||||
}
|
||||
}
|
||||
|
||||
class B {
|
||||
companion object : A()
|
||||
}
|
||||
|
||||
class C: A() {
|
||||
init {
|
||||
B.foo() // Error: receiver is not suitable
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user