From eef1fd8a103097ad5a868ae2e3ee747f3ec90e63 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Wed, 25 May 2011 07:57:14 -0400 Subject: [PATCH] fix #26 --- compile/interface/API.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile/interface/API.scala b/compile/interface/API.scala index 82aa32b2a..ccf06d77c 100644 --- a/compile/interface/API.scala +++ b/compile/interface/API.scala @@ -327,7 +327,7 @@ final class API(val global: Global, val callback: xsbti.AnalysisCallback) extend case at: AnnotatedType => annotatedType(in, at) case rt: CompoundType => structure(rt) case ExistentialType(tparams, result) => new xsbti.api.Existential(processType(in, result), typeParameters(in, tparams)) - case NoType => error("NoType") + case NoType => Constants.emptyType // this can happen when there is an error that will be reported by a later phase case PolyType(typeParams, resultType) => new xsbti.api.Polymorphic(processType(in, resultType), typeParameters(in, typeParams)) case Nullary(resultType) => error("Unexpected nullary method type " + in + " in " + in.owner) case _ => error("Unhandled type " + t.getClass + " : " + t)