Allow no else in annotated when-statements

This commit is contained in:
Andrey Breslav
2013-09-23 02:05:07 +04:00
parent db9dd5d320
commit 8f6b6639c5
4 changed files with 21 additions and 1 deletions
@@ -0,0 +1,8 @@
fun foo(a: Int) {
[ann]
when (a) {
1 -> {}
}
}
annotation class ann