From b5c4e5290ee6f63430bba59eb68c3febaea32a4c Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Thu, 19 Jan 2012 11:00:24 -0500 Subject: [PATCH] fix compiler interface to work with 2.10.0-SNAPSHOT --- compile/interface/API.scala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compile/interface/API.scala b/compile/interface/API.scala index 2bb9989b4..ff77133cd 100644 --- a/compile/interface/API.scala +++ b/compile/interface/API.scala @@ -260,7 +260,11 @@ final class API(val global: Global, val callback: xsbti.AnalysisCallback) extend None } private def ignoreClass(sym: Symbol): Boolean = + { + // 2.10 only has Name.endsWith(s: String) + implicit def nameToStringCompat(n: Name): String = n.toString sym.isLocalClass || sym.isAnonymousClass || sym.fullName.endsWith(LocalChild) + } // This filters private[this] vals/vars that were not in the original source. // The getter will be used for processing instead.