summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-12-29 09:38:12 -0800
committerPaul Phillips <paulp@improving.org>2012-12-29 09:38:12 -0800
commit93f3d63d67b0b1e81322b67488b80ee0a34d74e6 (patch)
tree97ae93eb21cebe61d7f0845a4b0cac22ec44cbed /src
parent7091c70a9930f939c3e33537ceee210584daae51 (diff)
parent6c3c0e391655457e917a8c85d2d74eb9297e0571 (diff)
downloadscala-93f3d63d67b0b1e81322b67488b80ee0a34d74e6.tar.gz
scala-93f3d63d67b0b1e81322b67488b80ee0a34d74e6.tar.bz2
scala-93f3d63d67b0b1e81322b67488b80ee0a34d74e6.zip
Merge pull request #1809 from scalamacros/topic/ident-attachments
fixes the typedIdent problem for good
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 4897529ca5..d72978cb1a 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -4753,7 +4753,7 @@ trait Typers extends Modes with Adaptations with Tags {
case sym => typed1(tree setSymbol sym, mode, pt)
}
case LookupSucceeded(qual, sym) =>
- // this -> Foo.this
+ (// this -> Foo.this
if (sym.isThisSym)
typed1(This(sym.owner) setPos tree.pos, mode, pt)
// Inferring classOf type parameter from expected type. Otherwise an
@@ -4762,12 +4762,12 @@ trait Typers extends Modes with Adaptations with Tags {
typedClassOf(tree, TypeTree(pt.typeArgs.head))
else {
val pre1 = if (sym.owner.isPackageClass) sym.owner.thisType else if (qual == EmptyTree) NoPrefix else qual.tpe
- val tree1 = if (qual == EmptyTree) tree else atPos(tree.pos)(Select(atPos(tree.pos.focusStart)(qual), name) setAttachments tree.attachments)
+ val tree1 = if (qual == EmptyTree) tree else atPos(tree.pos)(Select(atPos(tree.pos.focusStart)(qual), name))
val (tree2, pre2) = makeAccessible(tree1, sym, pre1, qual)
// SI-5967 Important to replace param type A* with Seq[A] when seen from from a reference, to avoid
// inference errors in pattern matching.
stabilize(tree2, pre2, mode, pt) modifyType dropIllegalStarTypes
- }
+ }) setAttachments tree.attachments
}
}