Skip to content

Commit d5433c5

Browse files
committed
Dealias before checking for illegal class parents
1 parent ae6fb3c commit d5433c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/PostTyper.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ class PostTyper extends MacroTransform with InfoTransformer { thisPhase =>
424424
// these refinements are split off from the parent type constructor
425425
// application `parent` in Namer and don't show up as parent types
426426
// of the class.
427-
val illegalRefs = parent.tpe.stripRefinement.namedPartsWith:
427+
val illegalRefs = parent.tpe.dealias.stripRefinement.namedPartsWith:
428428
p => p.symbol.is(ParamAccessor) && (p.symbol.owner eq sym)
429429
if illegalRefs.nonEmpty then
430430
report.error(

0 commit comments

Comments
 (0)