From 00d091871420be1e530109aba902a00802dee7a3 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Sat, 12 May 2012 23:12:29 -0400 Subject: [PATCH] workaround separate compilation and raw types --- compile/interface/API.scala | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/compile/interface/API.scala b/compile/interface/API.scala index 5d940ce56..e6cb036b8 100644 --- a/compile/interface/API.scala +++ b/compile/interface/API.scala @@ -309,9 +309,15 @@ final class API(val global: CallbackGlobal) extends Compat case ThisType(sym) => new xsbti.api.Singleton(thisPath(sym)) case SingleType(pre, sym) => projectionType(in, pre, sym) case ConstantType(constant) => new xsbti.api.Constant(processType(in, constant.tpe), constant.stringValue) - case TypeRef(pre, sym, args) => + case tr @ TypeRef(pre, sym, args) => val base = projectionType(in, pre, sym) - if(args.isEmpty) base else new xsbti.api.Parameterized(base, types(in, args)) + if(args.isEmpty) + if(isRaw(sym, args)) + processType(in, rawToExistential(tr)) + else + base + else + new xsbti.api.Parameterized(base, types(in, args)) case SuperType(thistpe: Type, supertpe: Type) => warning("sbt-api: Super type (not implemented): this=" + thistpe + ", super=" + supertpe); Constants.emptyType case at: AnnotatedType => annotatedType(in, at) case rt: CompoundType => structure(rt)