Files
kotlin-fork/compiler/testData/codegen/patternMatching/pattern.kt
T

5 lines
81 B
Kotlin

fun isString(x: Any) = when(x) {
is String -> "string"
else -> "something"
}