summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2009-12-02 16:12:14 +0000
committerAdriaan Moors <adriaan.moors@epfl.ch>2009-12-02 16:12:14 +0000
commite4af2ce209abd7565bb45eae1b80ec798b813035 (patch)
tree4da354dcf216387d58889ad74d8772332f47e9bd /src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
parenta9a967bc82ee805f095f7b7b525da2da8f6d46d6 (diff)
downloadscala-e4af2ce209abd7565bb45eae1b80ec798b813035.tar.gz
scala-e4af2ce209abd7565bb45eae1b80ec798b813035.tar.bz2
scala-e4af2ce209abd7565bb45eae1b80ec798b813035.zip
closes #2750: cooking java raw types in info of...
closes #2750: cooking java raw types in info of type parameters of Java classes review by: odersky
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/RefChecks.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/RefChecks.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
index c4a3981a51..d945e213c0 100644
--- a/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala
@@ -955,6 +955,8 @@ abstract class RefChecks extends InfoTransform {
private def checkTypeRef(tp: Type, pos: Position) = tp match {
case TypeRef(pre, sym, args) =>
checkDeprecated(sym, pos)
+ if(sym.hasFlag(JAVA))
+ sym.typeParams foreach (_.cookJavaRawInfo())
if (!tp.isHigherKinded)
checkBounds(pre, sym.owner, sym.typeParams, args, pos)
case _ =>