Quick Fixes: Fix adding parameter to Java constructor
#KT-24574 In Progress
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
import java.util.Set;
|
||||
|
||||
class Foo {
|
||||
Foo(int n, String s, Set<String> of) {}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Add parameter to constructor 'Foo'" "true"
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
private val foo = Foo(1, "2", <caret>setOf("3"))
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class Foo {
|
||||
Foo(int n, String s) {}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Add parameter to constructor 'Foo'" "true"
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
private val foo = Foo(1, "2", <caret>setOf("3"))
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import java.util.Set;
|
||||
|
||||
class Foo {
|
||||
void bar(int n, String s, Set<String> of) {}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Add parameter to function 'bar'" "true"
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
private val foo = Foo().bar(1, "2", <caret>setOf("3"))
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
class Foo {
|
||||
void bar(int n, String s) {}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// "Add parameter to function 'bar'" "true"
|
||||
// WITH_RUNTIME
|
||||
// DISABLE-ERRORS
|
||||
private val foo = Foo().bar(1, "2", <caret>setOf("3"))
|
||||
Reference in New Issue
Block a user