KT-1912 Formatter: smart indent doesn't work in a function literal
#KT-1099 fixed #KT-1912 fixed
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
package testing
|
||||
|
||||
private fun times<T>(times : Int, body : () -> T) {
|
||||
for (var i in 1..times) {
|
||||
body()
|
||||
}
|
||||
}
|
||||
private fun times<T>(times : Int, body : () -> T) {}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
times(3) {<caret>
|
||||
}
|
||||
times(3) {<caret>}
|
||||
}
|
||||
@@ -1,13 +1,9 @@
|
||||
package testing
|
||||
|
||||
private fun times<T>(times : Int, body : () -> T) {
|
||||
for (var i in 1..times) {
|
||||
body()
|
||||
}
|
||||
}
|
||||
private fun times<T>(times : Int, body : () -> T) {}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
times(3) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user