KT-17970 Intention actions to format parameter/argument list placing each on separate line
#KT-17970 Fixed
This commit is contained in:
+1
@@ -3,6 +3,7 @@
|
||||
// ACTION: Add parameter to constructor 'Foo'
|
||||
// ACTION: Create secondary constructor
|
||||
// ERROR: Too many arguments for public constructor Foo(a: Int) defined in Foo
|
||||
// ACTION: Put arguments on separate lines
|
||||
// ACTION: To raw string literal
|
||||
|
||||
class Foo(a: Int)
|
||||
|
||||
+1
@@ -3,6 +3,7 @@
|
||||
// ACTION: Make internal
|
||||
// ACTION: Make private
|
||||
// ACTION: Rename reference
|
||||
// ACTION: Put arguments on separate lines
|
||||
// ACTION: Convert to expression body
|
||||
// ERROR: Unresolved reference: foo
|
||||
// ERROR: Unresolved reference: bar
|
||||
|
||||
+1
@@ -3,6 +3,7 @@
|
||||
// ACTION: Convert parameter to receiver
|
||||
// ACTION: Rename to _
|
||||
// ACTION: Specify return type explicitly
|
||||
// ACTION: Put parameters on separate lines
|
||||
|
||||
fun foo(block: (String, Int) -> Unit) {
|
||||
block("", 1)
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// ACTION: Create function 'join'
|
||||
// ACTION: Flip ','
|
||||
// ACTION: Introduce local variable
|
||||
// ACTION: Put arguments on separate lines
|
||||
|
||||
//this test checks that there is no ArrayIndexOutOfBoundsException when there are more arguments than parameters
|
||||
fun <T> array1(vararg a : T) = a
|
||||
|
||||
Reference in New Issue
Block a user