[FIR] Extract contracts from original functions of fake overrides
^KT-57911 Fixed
This commit is contained in:
committed by
Space Team
parent
f8dc8057f0
commit
bde4d003be
Vendored
+4
-4
@@ -37,7 +37,7 @@ abstract class Base<T> {
|
||||
class Derived: Base<String>() {
|
||||
override fun foo(s: String?) {
|
||||
checkNotNull(s)
|
||||
s<!UNSAFE_CALL!>.<!>length
|
||||
s.length
|
||||
}
|
||||
|
||||
fun test_1(s: Any) {
|
||||
@@ -54,14 +54,14 @@ class Derived: Base<String>() {
|
||||
|
||||
fun test_3(s: Any) {
|
||||
if (checkIsReifiedR<String>(s)) {
|
||||
s.<!UNRESOLVED_REFERENCE!>length<!>
|
||||
s.length
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun test_1(d: Derived, s: String?) {
|
||||
d.checkNotNull(s)
|
||||
s<!UNSAFE_CALL!>.<!>length
|
||||
s.length
|
||||
}
|
||||
|
||||
fun test_2(d: Derived, s: Any?) {
|
||||
@@ -78,6 +78,6 @@ fun test_3(d: Derived, s: Any?) {
|
||||
|
||||
fun test_4(d: Derived, s: Any?) {
|
||||
if (d.checkIsReifiedR<String>(s)) {
|
||||
s.<!UNRESOLVED_REFERENCE!>length<!>
|
||||
s.length
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user