Skip to content

Commit 5fddb7f

Browse files
felixmulderDuhemm
authored andcommitted
Make ThisName recursive on self.ThisName
1 parent b9cd92e commit 5fddb7f

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
@@ -35,10 +35,10 @@ object Names {
3535
* in a name table. A derived term name adds a tag, and possibly a number
3636
* or a further simple name to some other name.
3737
*/
38-
abstract class Name extends Designator with PreName {
38+
abstract class Name extends Designator with PreName { self =>
3939

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

4343
/** Is this name a type name? */
4444
def isTypeName: Boolean

0 commit comments

Comments
 (0)