summaryrefslogtreecommitdiff
path: root/sources/scalac/typechecker/Context.java
diff options
context:
space:
mode:
Diffstat (limited to 'sources/scalac/typechecker/Context.java')
-rw-r--r--sources/scalac/typechecker/Context.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/scalac/typechecker/Context.java b/sources/scalac/typechecker/Context.java
index 3f1b30388f..5c01e9d73e 100644
--- a/sources/scalac/typechecker/Context.java
+++ b/sources/scalac/typechecker/Context.java
@@ -19,6 +19,7 @@ public class Context {
Context outer; // The next outer context
Context enclClass = this; // The next outer context whose tree
// is a class template
+ int variance; // Variance relative to eclosing class.
boolean delayArgs = false; // delay checking of type arguments
public Context() {}
@@ -35,6 +36,7 @@ public class Context {
if (tree instanceof Tree.Template ||
tree instanceof Tree.CompoundType) this.enclClass = this;
else this.enclClass = outer.enclClass;
+ this.variance = outer.variance;
this.delayArgs = outer.delayArgs;
this.outer = outer;
}