summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-08-16 15:01:23 -0700
committerPaul Phillips <paulp@improving.org>2012-09-01 20:17:22 -0700
commit178f7a4511cf4274a8bc3016d9ac8481202128d2 (patch)
tree769f3b6d83ceda36354bfec754c91e62096430a1 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parentd3d195966b4556065d0658e7ed09f38e00eed593 (diff)
downloadscala-178f7a4511cf4274a8bc3016d9ac8481202128d2.tar.gz
scala-178f7a4511cf4274a8bc3016d9ac8481202128d2.tar.bz2
scala-178f7a4511cf4274a8bc3016d9ac8481202128d2.zip
Worked around SI-6161 by annotating abstract type.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index f6baf02c3e..4eea8461d3 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -3431,7 +3431,7 @@ trait Typers extends Modes with Adaptations with Tags {
}
if (hasError) annotationError
- else AnnotationInfo(annType, List(), nvPairs map {p => (p._1.asInstanceOf[Name], p._2.get)}).setOriginal(Apply(typedFun, args).setPos(ann.pos)) // [Eugene] why do we need this cast?
+ else AnnotationInfo(annType, List(), nvPairs map {p => (p._1, p._2.get)}).setOriginal(Apply(typedFun, args).setPos(ann.pos))
}
} else if (requireJava) {
reportAnnotationError(NestedAnnotationError(ann, annType))