diff options
author | Martin Odersky <odersky@gmail.com> | 2015-12-19 17:54:16 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-12-19 17:54:59 +0100 |
commit | ec54cd557f3a9f52db9e280043a5b9657ca6fc30 (patch) | |
tree | 4021e8b4d99f7906b90e13026a291d1b30e4885c /src | |
parent | 1de9e43ce85f7ddc93e21c4c7dc2c8b6558e95fb (diff) | |
download | dotty-ec54cd557f3a9f52db9e280043a5b9657ca6fc30.tar.gz dotty-ec54cd557f3a9f52db9e280043a5b9657ca6fc30.tar.bz2 dotty-ec54cd557f3a9f52db9e280043a5b9657ca6fc30.zip |
Fix desugaring of symbols.
Symbols can appear in patterns, so inserting an `apply` is wrong.
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/ast/Desugar.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/ast/Desugar.scala b/src/dotty/tools/dotc/ast/Desugar.scala index 12f3e4406..d59c2dd7b 100644 --- a/src/dotty/tools/dotc/ast/Desugar.scala +++ b/src/dotty/tools/dotc/ast/Desugar.scala @@ -801,7 +801,7 @@ object desugar { tree match { case SymbolLit(str) => Apply( - Select(ref(defn.SymbolClass.companionModule.termRef), nme.apply), + ref(defn.SymbolClass.companionModule.termRef), Literal(Constant(str)) :: Nil) case InterpolatedString(id, strs, elems) => Apply(Select(Apply(Ident(nme.StringContext), strs), id), elems) |