Skip to content

Commit 6afa119

Browse files
committed
a tiny stab at #14
1 parent 96a93c4 commit 6afa119

File tree

1 file changed

+3
-1
lines changed
  • plugin/src/main/scala/org/scalalang/macroparadise/typechecker

1 file changed

+3
-1
lines changed

plugin/src/main/scala/org/scalalang/macroparadise/typechecker/Namers.scala

+3-1
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,9 @@ trait Namers {
533533
// we have to skip two contexts:
534534
// 1) the Template context that hosts members
535535
// 2) the ImplDef context that hosts type params (and just them?)
536-
else if (sym.owner.isClass) newTyper(context.outer.outer)
536+
// 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)
537539
// expanding at block level => only allow to see outside of the block
538540
else newTyper(context.outer)
539541
).asInstanceOf[ParadiseTyper]

0 commit comments

Comments
 (0)