4 lines
82 B
Kotlin
Vendored
4 lines
82 B
Kotlin
Vendored
fun foo(bar: Any) = when(bar) {
|
|
is String -> bar
|
|
!is String -> "<error>"
|
|
} |