summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2006-03-14 15:21:50 +0000
committerMartin Odersky <odersky@gmail.com>2006-03-14 15:21:50 +0000
commit8533be1a960832ca3040c7780c86fbb724dd3217 (patch)
treeb9d1ee8bcb3a577d52d12aeaaa69ff08da368c02 /src/compiler/scala/tools/nsc/typechecker/Contexts.scala
parent03f3c2af8c8d510114b1e36c39fa41be5ac5e1bd (diff)
downloadscala-8533be1a960832ca3040c7780c86fbb724dd3217.tar.gz
scala-8533be1a960832ca3040c7780c86fbb724dd3217.tar.bz2
scala-8533be1a960832ca3040c7780c86fbb724dd3217.zip
1. Added a BigInt class
2. Error rather than crash when regexp pattern is encountered 3. Small bug fixes. 4. Added support for filter and subRange in all array classes (was missing before). 5. Prepared for generalization of implicit conversions as needed for BigInt (but this is not yet enabled).
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Contexts.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Contexts.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
index 0da9ee6177..d4833ba155 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Contexts.scala
@@ -71,6 +71,7 @@ trait Contexts requires Analyzer {
// after the this constructor call?
var reportAmbiguousErrors = false;
var reportGeneralErrors = false;
+ var implicitsEnabled = false;
var checking = false;
var savedTypeBounds: List[Pair[Symbol, Type]] = List();
@@ -102,6 +103,7 @@ trait Contexts requires Analyzer {
c.imports = imports;
c.reportAmbiguousErrors = this.reportAmbiguousErrors;
c.reportGeneralErrors = this.reportGeneralErrors;
+ c.implicitsEnabled = this.implicitsEnabled;
c.checking = this.checking;
c.outer = this;
c
@@ -111,6 +113,7 @@ trait Contexts requires Analyzer {
val c = make(unit, EmptyTree, owner, scope, imports);
c.reportAmbiguousErrors = true;
c.reportGeneralErrors = true;
+ c.implicitsEnabled = true;
c
}
@@ -133,6 +136,7 @@ trait Contexts requires Analyzer {
val c = make(tree);
c.reportAmbiguousErrors = reportAmbiguousErrors;
c.reportGeneralErrors = false;
+ c.implicitsEnabled = false;
c
}