aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/NameOps.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/NameOps.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/NameOps.scala')
-rw-r--r--src/dotty/tools/dotc/core/NameOps.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/NameOps.scala b/src/dotty/tools/dotc/core/NameOps.scala
index 41384e346..6eee1f203 100644
--- a/src/dotty/tools/dotc/core/NameOps.scala
+++ b/src/dotty/tools/dotc/core/NameOps.scala
@@ -50,7 +50,7 @@ object NameOps {
implicit class NameDecorator[N <: Name](val name: N) extends AnyVal {
import nme._
- def isConstructorName = name == CONSTRUCTOR || name == TRAIT_CONSTRUCTOR
+ def isConstructorName = name == CONSTRUCTOR || name == IMPLCLASS_CONSTRUCTOR
def isExceptionResultName = name startsWith EXCEPTION_RESULT_PREFIX
def isImplClassName = name endsWith IMPL_CLASS_SUFFIX
def isLocalDummyName = name startsWith LOCALDUMMY_PREFIX