better folding for function literals

#KT-4090 Fixed
This commit is contained in:
Dmitry Jemerov
2015-04-21 20:47:55 +02:00
parent 048bb79946
commit 72648d305e
3 changed files with 46 additions and 9 deletions
@@ -0,0 +1,12 @@
fun some(body: () -> Unit) = body()
fun oneMore() <fold text='{...}' expand='true'>{
some <fold text='{...}' expand='true'>{
// this is a comment
val v1 = "Body"
val v2 = "of"
val v3 = "function"
}</fold>
}</fold>
// Generated from: idea/testData/folding/checkCollapse/block.kt