Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Jan 23, 2024
1 parent e05787e commit 64e7ed0
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,14 @@ void buildEscapedName() {
assertEquals("foo.bar.some escaped name", name.toString());
assertEquals("some escaped name", name.getSimpleName());
}

@Issue("https://github.com/openrewrite/rewrite-kotlin/issues/564")
@Test
void buildQuotedNameContainingDelimiter() {
J.FieldAccess name = TypeTree.build("foo.bar.`$`", '`');

assertTrue(name.getName().getMarkers().findFirst(Quoted.class).isPresent());
assertEquals("foo.bar.$", name.toString());
assertEquals("$", name.getSimpleName());
}
}

0 comments on commit 64e7ed0

Please sign in to comment.