From 84146e2f53fb1f5e8abbc521121078e932cf82e7 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 2 Oct 2009 17:01:54 +0000 Subject: Commented out some position assertions which ar... Commented out some position assertions which are crashing valid code. --- src/compiler/scala/tools/nsc/backend/icode/GenICode.scala | 8 ++++++-- 1 file 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 -- cgit v1.2.3