mirror of
https://github.com/enso-org/enso.git
synced 2024-11-22 11:52:59 +03:00
Remove renamed static method test.
Importing static method and renaming it is not possible.
This commit is contained in:
parent
94b1adb9e7
commit
4ced5dad47
@ -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 = """
|
||||
|
Loading…
Reference in New Issue
Block a user