fun foo() { when (x) { is Foo -> { } } }