Skip to content

Commit 7e0e9ac

Browse files
committed
Implement mkString on SignedNames
It should not happen that we need to turn signed names into strings. But it did because of the bug that was fixed in the previous commit. Anyway, toString is the wrong place to get picky about what should or should not have happened.
1 parent d9718ea commit 7e0e9ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/NameKinds.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ object NameKinds {
305305
case _ => None
306306
}
307307

308-
def mkString(underlying: TermName, info: ThisInfo): String = unsupported("mkString")
308+
def mkString(underlying: TermName, info: ThisInfo): String = s"$underlying[with sig ${info.sig}]"
309309
def infoString: String = "Signed"
310310
}
311311

0 commit comments

Comments
 (0)