Skip to content

Commit f1bcacd

Browse files
committed
Make ThisName recursive on self.ThisName
1 parent 9d55e41 commit f1bcacd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ object Names {
4040
* 3. Names are intended to be encoded strings. @see dotc.util.NameTransformer.
4141
* The encoding will be applied when converting a string to a name.
4242
*/
43-
abstract class Name extends DotClass with PreName {
43+
abstract class Name extends DotClass with PreName { self =>
4444

4545
/** A type for names of the same kind as this name */
46-
type ThisName <: Name
46+
type ThisName <: Name { type ThisName = self.ThisName }
4747

4848
/** Is this name a type name? */
4949
def isTypeName: Boolean

0 commit comments

Comments
 (0)