summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library/scala/package.scala7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/library/scala/package.scala b/src/library/scala/package.scala
index 5c9f9b7dd8..264fd18406 100644
--- a/src/library/scala/package.scala
+++ b/src/library/scala/package.scala
@@ -6,7 +6,7 @@
** |/ **
\* */
-
+import annotation.bridge
/**
* Core Scala types. They are always available without an explicit import.
@@ -75,6 +75,11 @@ package object scala {
@deprecated("Use Thread.currentThread instead", "2.9.0")
def currentThread = java.lang.Thread.currentThread()
+ // Moved back into Predef to avoid unnecessary indirection by
+ // way of the scala package object within the standard library,
+ // but bridged for compatibility.
+ @bridge def $scope = scala.xml.TopScope
+
// Numeric types which were moved into scala.math.*
type BigDecimal = scala.math.BigDecimal