We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfc30f0 commit 489a409Copy full SHA for 489a409
plugin/src/main/scala/org/scalalang/macroparadise/typechecker/Namers.scala
@@ -536,7 +536,9 @@ trait Namers {
536
// we have to skip two contexts:
537
// 1) the Template context that hosts members
538
// 2) the ImplDef context that hosts type params (and just them?)
539
- else if (sym.owner.isClass) newTyper(context.outer.outer)
+ // upd. actually, i don't think we should skip the second context
540
+ // that doesn't buy us absolutely anything wrt robustness
541
+ else if (sym.owner.isClass) newTyper(context.outer)
542
// expanding at block level => only allow to see outside of the block
543
else newTyper(context.outer)
544
).asInstanceOf[ParadiseTyper]
0 commit comments