make add cast fix available for vararg methods (IDEA-169541)

This commit is contained in:
Anna.Kozlova
2017-03-14 11:05:12 +01:00
parent 589c139797
commit 1e9f6352f2
8 changed files with 57 additions and 5 deletions

View File

@@ -0,0 +1,8 @@
// "Cast parameter to 'long'" "true"
class a {
void f(Long l, String... s) {}
void g() {
f((long) 0);
}
}

View File

@@ -0,0 +1,8 @@
// "Cast 1st parameter to 'long'" "true"
class a {
void f(Long l, String... s) {}
void g() {
f((long) 0, "", "");
}
}

View File

@@ -0,0 +1,8 @@
// "Cast 1st parameter to 'long'" "true"
class a {
void f(Long l, String... s) {}
void g() {
f((long) 0, "");
}
}

View File

@@ -0,0 +1,8 @@
// "Cast parameter to 'long'" "true"
class a {
void f(Long l, String... s) {}
void g() {
f(<caret>0);
}
}

View File

@@ -0,0 +1,8 @@
// "Cast 1st parameter to 'long'" "true"
class a {
void f(Long l, String... s) {}
void g() {
f(<caret>0, "", "");
}
}

View File

@@ -0,0 +1,8 @@
// "Cast 1st parameter to 'long'" "true"
class a {
void f(Long l, String... s) {}
void g() {
f(<caret>0, "");
}
}