RemoveRedundantQualifierNameInspection: fix case with non-static java functions
This commit is contained in:
idea/testData/multiFileLocalInspections/redundantQualifierName/javaStatic2/before/my/Reproducer.java
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
package my;
|
||||
|
||||
public class Reproducer {
|
||||
public static Reproducer test() {
|
||||
return new Reproducer();
|
||||
}
|
||||
|
||||
public int number() {
|
||||
return 42;
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package my.simple.name
|
||||
|
||||
import my.Reproducer
|
||||
import my.Reproducer.test
|
||||
|
||||
fun test() = Reproducer()
|
||||
|
||||
fun main() {
|
||||
Reproducer<caret>.test().number()
|
||||
}
|
||||
Reference in New Issue
Block a user