Allow if/when/try postfix templates in expression position
#KT-14078 Fixed
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
fun foo(x: String) {
|
||||
val y = x.when<caret>
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
fun foo(x: String) {
|
||||
val y = when (x) {
|
||||
-> {
|
||||
}
|
||||
else -> {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user