summaryrefslogtreecommitdiff
path: root/src/library
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2008-09-05 17:33:00 +0000
committerMartin Odersky <odersky@gmail.com>2008-09-05 17:33:00 +0000
commit03c12787c6d4538d7422d2cc2efc35c097bebbc1 (patch)
tree69de3837db8691a97ce7c883f9111f8948801f44 /src/library
parentefb19538b2738d5eff697f08cf707a1914f8f21f (diff)
downloadscala-03c12787c6d4538d7422d2cc2efc35c097bebbc1.tar.gz
scala-03c12787c6d4538d7422d2cc2efc35c097bebbc1.tar.bz2
scala-03c12787c6d4538d7422d2cc2efc35c097bebbc1.zip
more stability/volatile tuning and an escape ha...
more stability/volatile tuning and an escape hatch for the Eclipse plugin
Diffstat (limited to 'src/library')
-rw-r--r--src/library/scala/Predef.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/library/scala/Predef.scala b/src/library/scala/Predef.scala
index f1bff1f990..437be17a5d 100644
--- a/src/library/scala/Predef.scala
+++ b/src/library/scala/Predef.scala
@@ -114,6 +114,8 @@ object Predef {
// tupling ------------------------------------------------------------
+ def uncheckedStable[A](x: A): A with $Stable$ = x.asInstanceOf[A with $Stable$]
+
type Pair[+A, +B] = Tuple2[A, B]
object Pair {
def apply[A, B](x: A, y: B) = Tuple2(x, y)