[fixes #2261] Detect static method access properly

This commit is contained in:
Rawi01 committed 2020-08-20 09:53:18 +02:00
1 parent 4d2ae4ba32
commit 75b7a88a45
4 files changed
+115 -7

No files matched your search

@@ -0,0 +1,27 @@
package a;
class ExtensionMethodNames {
public void instanceCalls() {
a.Extensions.ext((new Test()));
Test t = new Test();
a.Extensions.ext(t);
Test Test = new Test();
a.Extensions.ext(Test);
}
public void staticCalls() {
Test.ext();
a.Test.ext();
}
}
class Extensions {
public static void ext(Test t) {
}
}
class Test {
public static void ext() {
}
}