Support for wildcard patterns

This commit is contained in:
Andrey Breslav
2011-05-19 21:24:21 +04:00
parent 197c4a6fee
commit 1c6dadb36a
6 changed files with 48 additions and 11 deletions
+1
View File
@@ -2,6 +2,7 @@ fun foo() {
val s = ""
val x = 1
when (x) {
is * => 1
is <error>String</error> => 1
!is Int => 1
is Any? => 1