Quick Fixes: Fix adding parameter to Java constructor

#KT-24574 In Progress
This commit is contained in:
Alexey Sedunov
2018-05-24 20:12:36 +03:00
parent 6e25db990d
commit 35517a8253
12 changed files with 72 additions and 4 deletions
@@ -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"))
@@ -0,0 +1,3 @@
class Foo {
Foo(int n, String s) {}
}
@@ -0,0 +1,4 @@
// "Add parameter to constructor 'Foo'" "true"
// WITH_RUNTIME
// DISABLE-ERRORS
private val foo = Foo(1, "2", <caret>setOf("3"))
@@ -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"))
@@ -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"))