diff options
Diffstat (limited to 'sources/scalac/typechecker/Analyzer.java')
-rw-r--r-- | sources/scalac/typechecker/Analyzer.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/scalac/typechecker/Analyzer.java b/sources/scalac/typechecker/Analyzer.java index 44b4773b87..b11f3ac85a 100644 --- a/sources/scalac/typechecker/Analyzer.java +++ b/sources/scalac/typechecker/Analyzer.java @@ -1276,6 +1276,11 @@ public class Analyzer extends Transformer implements Modifiers, Kinds { try { tree = infer.exprInstance(tree, tparams, restp, pt); } catch (Type.Error ex) { + Context c = context; + while (c != Context.NONE) { + System.out.println("context: " + c.owner); + c = c.outer; + } tree = error(tree.pos, ex.msg); } return adapt(tree, mode, pt); |