Skip to content

Rascal rename: detect ambiguous/double declarations at use sites properly #722

@toinehartman

Description

@toinehartman

Describe the bug

Currently, this test fails:

@expected{illegalRename}
test bool multiModuleAmbiguous() = testRenameOccurrences({
    byText("Foo", "public int foo = 1;", {0}),
    byText("Bar", "public int bar = 2;", {}),
    byText("Main", "import Foo;
                   'import Bar;
                   'int baz = foo + bar;", {0})
});

Expected behavior
It should succeed (a.k.a. throw illegal rename errors).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions