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