aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2016-08-09 18:28:20 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2016-08-09 18:28:20 +0200
commit92e13fe00f2bef5dc8ef5c46583aa745b04a6bc1 (patch)
treefe4835d29c9ce9bd669b241f98852f8d44351092 /src
parent67bb2f74a596120fd3408769c4fdd52063f964b3 (diff)
downloaddotty-92e13fe00f2bef5dc8ef5c46583aa745b04a6bc1.tar.gz
dotty-92e13fe00f2bef5dc8ef5c46583aa745b04a6bc1.tar.bz2
dotty-92e13fe00f2bef5dc8ef5c46583aa745b04a6bc1.zip
SelectStatic: retain symbols on overloaded selects
Diffstat (limited to 'src')
-rw-r--r--src/dotty/tools/dotc/transform/SelectStatic.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/transform/SelectStatic.scala b/src/dotty/tools/dotc/transform/SelectStatic.scala
index a517b1856..0cb054b1c 100644
--- a/src/dotty/tools/dotc/transform/SelectStatic.scala
+++ b/src/dotty/tools/dotc/transform/SelectStatic.scala
@@ -13,7 +13,6 @@ import dotty.tools.dotc.transform.TreeTransforms._
/** Removes selects that would be compiled into GetStatic
* otherwise backend needs to be aware that some qualifiers need to be dropped.
* Similar transformation seems to be performed by flatten in nsc
- *
* @author Dmytro Petrashko
*/
class SelectStatic extends MiniPhaseTransform with IdentityDenotTransformer { thisTransform =>
@@ -43,7 +42,7 @@ class SelectStatic extends MiniPhaseTransform with IdentityDenotTransformer { th
private def normalize(t: Tree)(implicit ctx: Context) = t match {
case Select(Block(stats, qual), nm) =>
- Block(stats, Select(qual, nm))
+ Block(stats, cpy.Select(t)(qual, nm))
case Apply(Block(stats, qual), nm) =>
Block(stats, Apply(qual, nm))
case TypeApply(Block(stats, qual), nm) =>