Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/variables/ifVarIsChanged.fir.kt
T

12 lines
222 B
Kotlin
Vendored

public fun bar(s: String) {
System.out.println("Length of $s is ${s.length}")
}
public fun foo() {
var s: Any = "not null"
if (s is String) {
s = 42
bar(<!ARGUMENT_TYPE_MISMATCH!>s<!>)
}
}