From 65ae85738cb2d14bb5e586417ccef352c3a268ac Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sat, 4 Feb 2012 22:19:53 -0800 Subject: Hardening in Constructors. --- src/compiler/scala/tools/nsc/transform/Constructors.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/scala/tools/nsc/transform/Constructors.scala b/src/compiler/scala/tools/nsc/transform/Constructors.scala index a672059211..b60b411f47 100644 --- a/src/compiler/scala/tools/nsc/transform/Constructors.scala +++ b/src/compiler/scala/tools/nsc/transform/Constructors.scala @@ -48,8 +48,8 @@ abstract class Constructors extends Transform with ast.TreeDSL { case Some(ddef @ DefDef(_, _, _, List(vparams), _, rhs @ Block(_, _))) => ConstrInfo(ddef, vparams map (_.symbol), rhs) case x => - // assert(false, "no constructor in template: impl = " + impl) - // AnyVal constructor + // AnyVal constructor is OK + assert(clazz eq AnyValClass, "no constructor in template: impl = " + impl) return impl } } -- cgit v1.2.3