Skip to content

Commit 489a409

Browse files
committed
a tiny stab at #14
1 parent dfc30f0 commit 489a409

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
@@ -536,7 +536,9 @@ trait Namers {
536536
// we have to skip two contexts:
537537
// 1) the Template context that hosts members
538538
// 2) the ImplDef context that hosts type params (and just them?)
539-
else if (sym.owner.isClass) newTyper(context.outer.outer)
539+
// 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)
540542
// expanding at block level => only allow to see outside of the block
541543
else newTyper(context.outer)
542544
).asInstanceOf[ParadiseTyper]

0 commit comments

Comments
 (0)