mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
add static import: check all expected types (IDEA-153378)
This commit is contained in:
+20
@@ -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;
|
||||
}
|
||||
+19
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user