Formatter: Add wrapping support for parameter/argument lists
#KT-6032 Fixed
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
// SET_INT: METHOD_PARAMETERS_WRAP = 0
|
||||
// SET_TRUE: ALIGN_MULTILINE_PARAMETERS
|
||||
// RIGHT_MARGIN: 30
|
||||
|
||||
fun testtest()
|
||||
|
||||
fun testtesttesttesttesttesttesttesttest()
|
||||
|
||||
fun testtest(foofoo: Int)
|
||||
|
||||
fun testtesttesttest(foofoo: Int)
|
||||
|
||||
fun test(foo: Int, bar: Int)
|
||||
|
||||
fun testtesttesttest(foofoo: Int, barbar: Int, foobar: Int, barfoo: Int)
|
||||
|
||||
fun test() {
|
||||
for (foo: Int in bar) {
|
||||
|
||||
}
|
||||
|
||||
for (foofoofoofoofoofoo: Int in bar) {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
} catch (bar: Exception) {
|
||||
|
||||
} catch (barbarbarbarbar: Exception) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user