summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-02-04 22:19:53 -0800
committerPaul Phillips <paulp@improving.org>2012-02-04 22:19:53 -0800
commit65ae85738cb2d14bb5e586417ccef352c3a268ac (patch)
treebe5a912feefc3d1c16cd42f29123e58c62b7212e /src
parentfe901382384ded9b75ab5dbd981dde9255856715 (diff)
downloadscala-65ae85738cb2d14bb5e586417ccef352c3a268ac.tar.gz
scala-65ae85738cb2d14bb5e586417ccef352c3a268ac.tar.bz2
scala-65ae85738cb2d14bb5e586417ccef352c3a268ac.zip
Hardening in Constructors.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/transform/Constructors.scala4
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
}
}