diff options
Diffstat (limited to 'src/dotnet-library/scala/Predef.scala')
-rw-r--r-- | src/dotnet-library/scala/Predef.scala | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/dotnet-library/scala/Predef.scala b/src/dotnet-library/scala/Predef.scala index da2255e3a9..eae88b94bc 100644 --- a/src/dotnet-library/scala/Predef.scala +++ b/src/dotnet-library/scala/Predef.scala @@ -52,10 +52,15 @@ object Predef { type UnsupportedOperationException = System.InvalidOperationException type IllegalArgumentException = System.ArgumentException type NoSuchElementException = System.InvalidOperationException - //type NumberFormatException = java.lang.NumberFormatException + type NumberFormatException = System.FormatException + type AbstractMethodError = System.InvalidOperationException // miscelleaneous ----------------------------------------------------- + private val P = scala.`package` // to force scala package object to be seen. + private val L = scala.collection.immutable.List // to force Nil, :: to be seen. + private val S = scala.collection.mutable.StringBuilder // to force StringBuilder to be seen. + //val $scope = scala.xml.TopScope type Function[-A, +B] = Function1[A, B] @@ -184,7 +189,6 @@ object Predef { implicit def unitWrapper(x: Boolean) = new runtime.RichUnit implicit def stringWrapper(x: String) = new runtime.RichString(x) - //implicit def stringBuilderWrapper(x : StringBuilder): runtime.RichStringBuilder = new runtime.RichStringBuilder(x) implicit def any2stringadd(x: Any) = new runtime.StringAdd(x) @@ -323,7 +327,7 @@ object Predef { implicit def float2double(x: Float): Double = x.toDouble - implicit def forceArrayProjection[A](x : Array.Projection[A]) : Array[A] = x.force + //implicit def forceArrayProjection[A](x : Array.Projection[A]) : Array[A] = x.force !!! re-enable? def currentThread = System.Threading.Thread.CurrentThread |