diff options
author | mschwerhoff <unknown> | 2010-10-21 12:37:19 +0000 |
---|---|---|
committer | mschwerhoff <unknown> | 2010-10-21 12:37:19 +0000 |
commit | 7b2e81b5f228e09feaedd215c7d2fc7eed0ffe1c (patch) | |
tree | 423f16e33e842891ac50489b3e6b2850c9c8ed4a /Chalice/src | |
parent | 6f082ca6d08fbef18e108062e29252f906c422dc (diff) |
Chalice: Now compiles with Scala 2.7.7 and 2.8.0, the latter yields many warnings, though. If 2.8.0 terminates with a stack overflow, increase stack size of the JVM (-Xss16M)
Diffstat (limited to 'Chalice/src')
-rw-r--r-- | Chalice/src/Resolver.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Chalice/src/Resolver.scala b/Chalice/src/Resolver.scala index 0c4ae979..b8ca7ecd 100644 --- a/Chalice/src/Resolver.scala +++ b/Chalice/src/Resolver.scala @@ -18,7 +18,7 @@ object Resolver { sealed class ProgramContext(val decls: Map[String,TopLevelDecl], val currentClass: Class,
val currentMember: Member, val errors: ListBuffer[(Position,String)]) {
final def AddVariable(v: Variable): ProgramContext = new LProgramContext(v, this);
- final def Error(pos: Position, msg: String) {errors + (pos, msg)}
+ final def Error(pos: Position, msg: String) {errors.append((pos, msg))}
final def SetClass(cl: Class): ProgramContext = new MProgramContext(cl, null, this)
final def SetMember(m: Member): ProgramContext = {
var ctx:ProgramContext = new MProgramContext(currentClass, m, this)
|