FIR: add proper receiver check for protected visibility #KT-48378 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
1c1b9547c1
commit
08e498f1f2
+2
-2
@@ -11,8 +11,8 @@ fun BaseOuter.foo(): String = ""
|
||||
class Derived : BaseOuter() {
|
||||
fun test(foo: Foo) {
|
||||
if (foo.base is Derived) {
|
||||
foo.base.foo() checkType { <!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>_<!><String>() } // Resolved to extension
|
||||
foo.base.bar()
|
||||
foo.base.foo() checkType { _<String>() } // Resolved to extension
|
||||
foo.base.<!INVISIBLE_REFERENCE!>bar<!>()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user