[FIR] Substitute types from arguments in evaluating of contract
#KT-41078
This commit is contained in:
committed by
TeamCityServer
parent
80f95528c2
commit
91fedd6a12
+2
-2
@@ -22,10 +22,10 @@ inline fun <reified T> cast(value: Any?): T {
|
||||
|
||||
fun test_1(x: Any) {
|
||||
requireIsInstance<String>(x)
|
||||
x.<!UNRESOLVED_REFERENCE!>length<!>
|
||||
x.length
|
||||
}
|
||||
|
||||
fun test_2(x: Any) {
|
||||
val s: String = cast(x)
|
||||
x.<!UNRESOLVED_REFERENCE!>length<!>
|
||||
x.length
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user