diff options
author | Burak Emir <emir@epfl.ch> | 2007-08-19 08:57:08 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2007-08-19 08:57:08 +0000 |
commit | f507e25804b6f1ad2ae278c3492c232e765b2a53 (patch) | |
tree | 0bab094853be4e74092a411f562165c3481e17df | |
parent | b63f70743f6f1f93c172b4ff9db2c2f5d2b6eb2a (diff) | |
download | scala-f507e25804b6f1ad2ae278c3492c232e765b2a53.tar.gz scala-f507e25804b6f1ad2ae278c3492c232e765b2a53.tar.bz2 scala-f507e25804b6f1ad2ae278c3492c232e765b2a53.zip |
'system.exit' in supposedly disable code change...
'system.exit' in supposedly disable code changed to 'fatal error'
-rw-r--r-- | src/compiler/scala/tools/nsc/matching/ParallelMatching.scala | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala b/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala index c56d767610..780848a2e9 100644 --- a/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala +++ b/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala @@ -82,10 +82,10 @@ trait ParallelMatching { return new MixEquals(scrutinee, column, rest) } // the next condition is never true, @see isImplemented/CantHandleSeq - if(column.head.isInstanceOf[ArrayValue]) { DBG("\n%%% MixArrayValue"); - Console.println("STOP"); System.exit(-1); // EXPERIMENTAL + //if(column.head.isInstanceOf[ArrayValue]) { DBG("\n%%% MixArrayValue"); + // Console.println("STOP"); System.exit(-1); // EXPERIMENTAL //return new MixSequence(scrutinee, column, rest) - } + //} if(isSimpleSwitch) { DBG("\n%%% MixLiterals") return new MixLiterals(scrutinee, column, rest) } @@ -657,8 +657,8 @@ trait ParallelMatching { } catch { case e => Console.println("object pattern test throws "+e.getMessage()) - if(settings_debug) - System.exit(-1); + //if(settings_debug) + // System.exit(-1); throw e } //Console.println("scrutinee == "+scrutinee+":"+scrutinee.tpe) @@ -936,12 +936,14 @@ object Rep { case MethodType(fmls,_) => if (fmls.length != args.length) { // sanity check cunit.error(targets(bx).pos, "consistency problem ! "+fmls) - System.exit(-1) + //System.exit(-1) + throw FatalError("consistency problem") } for((f,a) <- fmls.zip(args.toList)) { if(!(a.tpe <:< f)) { cunit.error(targets(bx).pos, "consistency problem ! "+a.tpe+" "+f) - System.exit(-1) + //System.exit(-1) + throw FatalError("consistency problem") } } } |