"JetPsiFactory.createExpressionByPattern" and some usages of it

This commit is contained in:
Valentin Kipyatkov
2015-04-29 22:51:21 +03:00
parent 0a5951fcb9
commit b0aca040d8
12 changed files with 218 additions and 67 deletions
@@ -1,8 +1,7 @@
fun foo() {
val list = 1..4
list.forEach { x ->
x
// check that original formatting of "x+1" and "1 .. 4" is preserved
(1 .. 4).forEach { x ->
x
x+1
}
}