summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-10-02 17:01:54 +0000
committerPaul Phillips <paulp@improving.org>2009-10-02 17:01:54 +0000
commit84146e2f53fb1f5e8abbc521121078e932cf82e7 (patch)
tree7e670c83a639274077fb351be87e90db7b52777e
parent284788dbe1ca5b9889230a1e1614b231f5bd25e1 (diff)
downloadscala-84146e2f53fb1f5e8abbc521121078e932cf82e7.tar.gz
scala-84146e2f53fb1f5e8abbc521121078e932cf82e7.tar.bz2
scala-84146e2f53fb1f5e8abbc521121078e932cf82e7.zip
Commented out some position assertions which ar...
Commented out some position assertions which are crashing valid code.
-rw-r--r--src/compiler/scala/tools/nsc/backend/icode/GenICode.scala8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala b/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala
index 4d5f93675e..bbe98f7b3f 100644
--- a/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala
+++ b/src/compiler/scala/tools/nsc/backend/icode/GenICode.scala
@@ -1395,8 +1395,12 @@ abstract class GenICode extends SubComponent {
case None =>
val local = ctx.makeLocal(l.pos, definitions.AnyRefClass.typeConstructor, eqEqTempName.toString)
//assert(!l.pos.source.isEmpty, "bad position, unit = "+unit+", tree = "+l+", pos = "+l.pos.source)
- assert(l.pos.source == unit.source)
- assert(r.pos.source == unit.source)
+ // Note - I commented these out because they were crashing the test case in ticket #2426
+ // (and I have also had to comment them out at various times while working on equality.)
+ // I don't know what purpose they are serving but it would be nice if they didn't have to
+ // crash the compiler.
+ // assert(l.pos.source == unit.source)
+ // assert(r.pos.source == unit.source)
local.start = (l.pos).line
local.end = (r.pos).line
local