Remove renamed static method test.

Importing static method and renaming it is not possible.
This commit is contained in:
Pavel Marek 2024-06-11 11:18:25 +02:00
parent 94b1adb9e7
commit 4ced5dad47

View File

@ -63,20 +63,6 @@ public class ShadowedIdentifiersTest {
testProjectCompilationWarning(projDir, allOf(containsString("shadowed")));
}
@Test
public void shadowingRenamedStaticMethodFromDifferentModuleIsWarning() throws IOException {
var modSrc = """
stat_method_foo x y = x + y
""";
var mainSrc =
"""
import project.Mod.stat_method_foo as stat_method
stat_method x = x + 42
""";
var projDir = createProjectWithTwoModules(mainSrc, modSrc);
testProjectCompilationWarning(projDir, allOf(containsString("shadowed")));
}
@Test
public void shadowedTypeHasPrecedence() throws IOException {
var modSrc = """