Allow if/when/try postfix templates in expression position

#KT-14078 Fixed
This commit is contained in:
Denis Zharkov
2016-09-28 20:24:34 +03:00
parent bff9dd4ef5
commit 18146fafdf
4 changed files with 23 additions and 6 deletions
@@ -0,0 +1,8 @@
fun foo(x: String) {
val y = when (x) {
-> {
}
else -> {
}
}
}