Change "Not a simple type" warning to log message

Workaround for -Xfatal-warnings being triggered because of #830.
This commit is contained in:
Brian McKenna 2014-07-30 07:43:43 -06:00
parent ea2c7f7d46
commit 2fefaf5758
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class ExtractAPI[GlobalType <: CallbackGlobal](val global: GlobalType,
private def simpleType(in: Symbol, t: Type): SimpleType =
processType(in, t) match {
case s: SimpleType => s
case x => warning("Not a simple type:\n\tType: " + t + " (" + t.getClass + ")\n\tTransformed: " + x.getClass); Constants.emptyType
case x => log("Not a simple type:\n\tType: " + t + " (" + t.getClass + ")\n\tTransformed: " + x.getClass); Constants.emptyType
}
private def types(in: Symbol, t: List[Type]): Array[xsbti.api.Type] = t.toArray[Type].map(processType(in, _))
private def projectionType(in: Symbol, pre: Type, sym: Symbol) =