diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/Constructors.scala | 4 |
1 files 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 } } |