summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2007-04-04 16:30:11 +0000
committerMartin Odersky <odersky@gmail.com>2007-04-04 16:30:11 +0000
commit51d9edec14b5c56f6fc4d283fa27fb7c7d782249 (patch)
tree2ba1165c504cac44b3b1545b8b1274ccf2b05ff9 /src/compiler/scala/tools/nsc/typechecker/Contexts.scala
parent7f3c7c392467b128af32d416edf521f468caf34c (diff)
downloadscala-51d9edec14b5c56f6fc4d283fa27fb7c7d782249.tar.gz
scala-51d9edec14b5c56f6fc4d283fa27fb7c7d782249.tar.bz2
scala-51d9edec14b5c56f6fc4d283fa27fb7c7d782249.zip
explicit supercalls + new style for syntax + ba...
explicit supercalls + new style for syntax + backquoted ids in patterns
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Contexts.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Contexts.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
index 407c50caf1..eece1dabd0 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
@@ -228,6 +228,8 @@ trait Contexts requires Analyzer {
while (baseContext.tree.isInstanceOf[Template])
baseContext = baseContext.outer
val argContext = baseContext.makeNewScope(tree, owner)
+ argContext.reportGeneralErrors = this.reportGeneralErrors
+ argContext.reportAmbiguousErrors = this.reportAmbiguousErrors
for (val sym <- scope.toList) argContext.scope enter sym
argContext
}