diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-08-06 18:09:35 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-08-06 18:13:35 +0200 |
commit | d2ab211814dedc2d5aed17169d54bb76e83752e2 (patch) | |
tree | 2f2c3ff796224ef58522f225262362d447569f34 | |
parent | ba402c457aecf7d94038534775b7b063d7d5bd9e (diff) | |
download | scala-d2ab211814dedc2d5aed17169d54bb76e83752e2.tar.gz scala-d2ab211814dedc2d5aed17169d54bb76e83752e2.tar.bz2 scala-d2ab211814dedc2d5aed17169d54bb76e83752e2.zip |
compatibility stub for SBT 0.12.0
As discussed in http://groups.google.com/group/scala-internals/browse_thread/thread/9ee8df2ae9d43169,
recent change of return type for Type.members (from List[Symbol] to Scope)
broke compiler-interface for SBT 0.12.0-final.
This stub (courtesy of Jason Zaugg) keeps reflection API untouched and
also fixes SBT. Win-win.
-rw-r--r-- | src/reflect/scala/reflect/internal/Scopes.scala | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/reflect/scala/reflect/internal/Scopes.scala b/src/reflect/scala/reflect/internal/Scopes.scala index ed390b5a3b..35d029afdc 100644 --- a/src/reflect/scala/reflect/internal/Scopes.scala +++ b/src/reflect/scala/reflect/internal/Scopes.scala @@ -324,6 +324,9 @@ trait Scopes extends api.Scopes { self: SymbolTable => override def filter(p: Symbol => Boolean): Scope = if (!(toList forall p)) newScopeWith(toList filter p: _*) else this + @deprecated("Use `toList.reverse` instead", "2.10.0") + def reverse: List[Symbol] = toList.reverse + override def mkString(start: String, sep: String, end: String) = toList.map(_.defString).mkString(start, sep, end) |