We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae6fb3c commit d5433c5Copy full SHA for d5433c5
compiler/src/dotty/tools/dotc/transform/PostTyper.scala
@@ -424,7 +424,7 @@ class PostTyper extends MacroTransform with InfoTransformer { thisPhase =>
424
// these refinements are split off from the parent type constructor
425
// application `parent` in Namer and don't show up as parent types
426
// of the class.
427
- val illegalRefs = parent.tpe.stripRefinement.namedPartsWith:
+ val illegalRefs = parent.tpe.dealias.stripRefinement.namedPartsWith:
428
p => p.symbol.is(ParamAccessor) && (p.symbol.owner eq sym)
429
if illegalRefs.nonEmpty then
430
report.error(
0 commit comments