diff options
author | Martin Odersky <odersky@gmail.com> | 2013-12-08 19:15:35 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-12-08 19:15:35 +0100 |
commit | 1bbebdfa6d56bab7d14d3beef978eb9ada382191 (patch) | |
tree | acf6b5c75506c3ee602c8ffb786f62700baba0d9 /src | |
parent | 519a99ab7f5d6a20d985fa0b515567d43c4c802a (diff) | |
download | dotty-1bbebdfa6d56bab7d14d3beef978eb9ada382191.tar.gz dotty-1bbebdfa6d56bab7d14d3beef978eb9ada382191.tar.bz2 dotty-1bbebdfa6d56bab7d14d3beef978eb9ada382191.zip |
Making encode stick on <init>
Previous one was a no-op, because <init> is excluded from Name#encode
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/core/StdNames.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/StdNames.scala b/src/dotty/tools/dotc/core/StdNames.scala index 03e9f3bfc..73c53df6a 100644 --- a/src/dotty/tools/dotc/core/StdNames.scala +++ b/src/dotty/tools/dotc/core/StdNames.scala @@ -91,7 +91,7 @@ object StdNames { val BITMAP_CHECKINIT: N = BITMAP_PREFIX + "init$" // initialization bitmap for checkinit values val BITMAP_CHECKINIT_TRANSIENT: N = BITMAP_PREFIX + "inittrans$" // initialization bitmap for transient checkinit values val DEFAULT_GETTER: N = "$default$" - val DEFAULT_GETTER_INIT: N = encode("<init>") + val DEFAULT_GETTER_INIT: N = NameTransformer.encode("<init>") val DO_WHILE_PREFIX: N = "doWhile$" val EMPTY: N = "" val EMPTY_PACKAGE: N = Names.EMPTY_PACKAGE.toString @@ -150,6 +150,7 @@ object StdNames { // fictions we use as both types and terms final val ERROR: N = "<error>" + final val ERRORenc: N = encode("<error>") final val NO_NAME: N = "<none>" // formerly NOSYMBOL final val WILDCARD: N = "_" |