We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70ad514 commit c4680c8Copy full SHA for c4680c8
src/dotty/tools/dotc/core/SymDenotations.scala
@@ -299,7 +299,11 @@ object SymDenotations {
299
/** The expanded name of this denotation. */
300
final def expandedName(implicit ctx: Context) =
301
if (is(ExpandedName) || isConstructor) name
302
- else name.expandedName(initial.asSymDenotation.owner)
+ else {
303
+ def legalize(name: Name): Name = // JVM method names may not contain `<' or `>' characters
304
+ if (is(Method)) name.replace('<', '(').replace('>', ')') else name
305
+ legalize(name.expandedName(initial.asSymDenotation.owner))
306
+ }
307
// need to use initial owner to disambiguate, as multiple private symbols with the same name
308
// might have been moved from different origins into the same class
309
0 commit comments