Create TrailingCommaIntention
#KT-34744
This commit is contained in:
+1
@@ -3,6 +3,7 @@
|
||||
// ACTION: Convert parameter to receiver
|
||||
// ACTION: Rename to _
|
||||
// ACTION: Specify return type explicitly
|
||||
// ACTION: Enable a trailing comma by default in the formatter
|
||||
// ACTION: Put parameters on separate lines
|
||||
|
||||
fun foo(block: (String, Int) -> Unit) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// "Remove parameter 'x'" "false"
|
||||
// ACTION: Enable a trailing comma by default in the formatter
|
||||
// ACTION: Move lambda argument into parentheses
|
||||
// ACTION: Remove explicit lambda parameter types (may break code)
|
||||
// ACTION: Rename to _
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// "Rename to _" "false"
|
||||
// ACTION: Convert parameter to receiver
|
||||
// ACTION: Enable a trailing comma by default in the formatter
|
||||
// ACTION: Remove parameter 'x'
|
||||
|
||||
fun foo(x<caret>: Int) {
|
||||
|
||||
Reference in New Issue
Block a user