Attributes on patterns tested

This commit is contained in:
Andrey Breslav
2011-01-14 21:40:59 +03:00
parent 1b999056b4
commit 8d83b866a4
4 changed files with 125 additions and 2 deletions
@@ -0,0 +1,9 @@
fun foo() {
when (e) {
is [a] =2 => d
is [a] 2 => d
is [a] T => d
is [a] T() => d
}
}