blob: 26b8065b8b75d9196f13be0e266f3717316a8db9 [file] [log] [blame] [edit]
fun foo(bar: Any) = when(bar) {
is String -> bar
!is String -> "<error>"
}