aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-12-06 14:39:02 +0100
committerMartin Odersky <odersky@gmail.com>2013-12-06 14:39:02 +0100
commit554ac428ede1c7a337b507a2e8b29c1671c7d2ee (patch)
tree716da768e1553e15e1c2556384a84aa7d2c14bc6 /src/dotty/tools/dotc/core/SymDenotations.scala
parente3aa7d4042496a0e44f2086943ad3c29a7b8c8b8 (diff)
downloaddotty-554ac428ede1c7a337b507a2e8b29c1671c7d2ee.tar.gz
dotty-554ac428ede1c7a337b507a2e8b29c1671c7d2ee.tar.bz2
dotty-554ac428ede1c7a337b507a2e8b29c1671c7d2ee.zip
Dropping TRAIT_CONSTRUCTOR name.
Trait constructors are now also called <init>. When expanding traits we might want to use IMPLCLASS_CONSTRUCTOR.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index f0ba4ad12..3c6a32707 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -343,7 +343,7 @@ object SymDenotations {
final def isClassConstructor = name == nme.CONSTRUCTOR
/** Is this the constructor of a trait? */
- final def isTraitConstructor = name == nme.TRAIT_CONSTRUCTOR
+ final def isImplClassConstructor = name == nme.IMPLCLASS_CONSTRUCTOR
/** Is this the constructor of a trait or a class */
final def isConstructor = name.isConstructorName
@@ -1065,7 +1065,7 @@ object SymDenotations {
override def fullName(implicit ctx: Context): Name = super.fullName
override def primaryConstructor(implicit ctx: Context): Symbol = {
- val cname = if (this is Trait | ImplClass) nme.TRAIT_CONSTRUCTOR else nme.CONSTRUCTOR
+ val cname = if (this is ImplClass) nme.IMPLCLASS_CONSTRUCTOR else nme.CONSTRUCTOR
decls.denotsNamed(cname).first.symbol
}
}