Skip to content

Commit ff4e8d5

Browse files
committed
Make ThisName recursive on self.ThisName
1 parent e3b7eef commit ff4e8d5

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

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

4545
/** Is this name a type name? */
4646
def isTypeName: Boolean

0 commit comments

Comments
 (0)