[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !CHECK_TYPE
|
||||
open class BaseOuter {
|
||||
protected fun foo() = 1
|
||||
protected fun bar() { }
|
||||
}
|
||||
|
||||
class Foo(var base: BaseOuter)
|
||||
|
||||
fun BaseOuter.foo(): String = ""
|
||||
|
||||
class Derived : BaseOuter() {
|
||||
fun test(foo: Foo) {
|
||||
if (foo.base is Derived) {
|
||||
foo.base.foo() checkType { <!INAPPLICABLE_CANDIDATE!>_<!><String>() } // Resolved to extension
|
||||
foo.base.bar()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user