Change Signature: Support configurable Change Signature for Java code
#KT-5923 Fixed
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
class Foo {
|
||||
static void foo(int n, int m, int i) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
Foo.foo();
|
||||
Foo.foo(1);
|
||||
Foo.foo(1, 2, 3);
|
||||
Foo.foo(1, 2, 3);
|
||||
Foo.foo(4, 5, 6);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Add parameter to function 'foo'" "true"
|
||||
// DISABLE-ERRORS
|
||||
fun test() {
|
||||
Foo.foo()
|
||||
Foo.foo(1)
|
||||
Foo.foo(1, 2, 3)
|
||||
Foo.foo(1, 2, 3<caret>)
|
||||
Foo.foo(4, 5, 6)
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
class Foo {
|
||||
static void foo(int n, int m) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
Foo.foo();
|
||||
Foo.foo(1);
|
||||
Foo.foo(1, 2);
|
||||
Foo.foo(1, 2, 3);
|
||||
Foo.foo(4, 5, 6);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Add parameter to function 'foo'" "true"
|
||||
// DISABLE-ERRORS
|
||||
fun test() {
|
||||
Foo.foo()
|
||||
Foo.foo(1)
|
||||
Foo.foo(1, 2)
|
||||
Foo.foo(1, 2, 3<caret>)
|
||||
Foo.foo(4, 5, 6)
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
class Foo {
|
||||
static void foo(int n) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
Foo.foo();
|
||||
Foo.foo(1);
|
||||
Foo.foo(1);
|
||||
Foo.foo(3);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// "Remove parameter 'm'" "true"
|
||||
// DISABLE-ERRORS
|
||||
fun test() {
|
||||
Foo.foo()
|
||||
Foo.foo(1<caret>)
|
||||
Foo.foo(1)
|
||||
Foo.foo(3)
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
class Foo {
|
||||
static void foo(int n, int m) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
static void test() {
|
||||
Foo.foo();
|
||||
Foo.foo(1);
|
||||
Foo.foo(1, 2);
|
||||
Foo.foo(3, 4);
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Remove parameter 'm'" "true"
|
||||
// DISABLE-ERRORS
|
||||
fun test() {
|
||||
Foo.foo()
|
||||
Foo.foo(1<caret>)
|
||||
Foo.foo(1, 2)
|
||||
Foo.foo(3, 4)
|
||||
}
|
||||
Reference in New Issue
Block a user