Files
kotlin/compiler/testData/codegen/patternMatching/pattern.kt
2013-01-24 21:12:27 +04:00

5 lines
81 B
Kotlin

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