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

10 lines
171 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)
bar(s)
}