summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Contexts.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Contexts.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
index 758a006e0e..d0e90a2fe2 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
@@ -110,7 +110,8 @@ trait Contexts { self: Analyzer =>
var checking = false
var retyping = false
- var savedTypeBounds: List[(Symbol, Type)] = List()
+ var savedTypeBounds: List[(Symbol, Type)] = List() // saved type bounds
+ // for type parameters which are narrowed in a GADT
def intern0 : Context = {
if (this eq NoContext) return this