add static import: check all expected types (IDEA-153378)

This commit is contained in:
Anna Kozlova
2018-01-05 20:05:51 +01:00
parent 3430c6e7f1
commit bd49d9f065
5 changed files with 60 additions and 16 deletions
@@ -0,0 +1,20 @@
// "Import static constant 'foo.B.CONST'" "true"
package foo;
import static foo.A.*;
import static foo.B.*;
import static foo.B.CONST;
public class X {
{
int i = CONST.length();
}
}
class A {
public static Object CONST = null;
}
class B {
public static String CONST = null;
}
@@ -0,0 +1,19 @@
// "Import static constant 'foo.B.CONST'" "true"
package foo;
import static foo.A.*;
import static foo.B.*;
public class X {
{
int i = CON<caret>ST.length();
}
}
class A {
public static Object CONST = null;
}
class B {
public static String CONST = null;
}