summaryrefslogtreecommitdiff
path: root/test/pending/run/t2318.scala
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-11-02 14:34:35 +0000
committerHubert Plociniczak <hubert.plociniczak@epfl.ch>2011-11-02 14:34:35 +0000
commitb6778be91900b8161e705dc2598ef7af86842b0b (patch)
treed15e8ec18a37eec212f50f1ace27714d7e7d4d34 /test/pending/run/t2318.scala
parentac6c76f26d884a94d0c9ff54f055d3f9ab750bac (diff)
downloadscala-b6778be91900b8161e705dc2598ef7af86842b0b.tar.gz
scala-b6778be91900b8161e705dc2598ef7af86842b0b.tar.bz2
scala-b6778be91900b8161e705dc2598ef7af86842b0b.zip
Begone t1737...
Diffstat (limited to 'test/pending/run/t2318.scala')
-rw-r--r--test/pending/run/t2318.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/pending/run/t2318.scala b/test/pending/run/t2318.scala
index 7bb666706f..e42cbb9680 100644
--- a/test/pending/run/t2318.scala
+++ b/test/pending/run/t2318.scala
@@ -2,7 +2,7 @@ import java.security._
object Test {
trait Bar { def bar: Unit }
-
+
object Mgr extends SecurityManager {
override def checkPermission(perm: Permission) = perm match {
case _: java.lang.RuntimePermission => ()
@@ -11,11 +11,11 @@ object Test {
case _ => super.checkPermission(perm)
}
}
-
+
def t1() = {
val p = Runtime.getRuntime().exec("ls");
type Destroyable = { def destroy() : Unit }
- def doDestroy( obj : Destroyable ) : Unit = obj.destroy();
+ def doDestroy( obj : Destroyable ) : Unit = obj.destroy();
doDestroy( p );
}
def t2() = {
@@ -27,12 +27,12 @@ object Test {
val structural = b.asInstanceOf[{ def bar: Unit }]
structural.bar
}
-
+
def main(args: Array[String]) {
// figuring this will otherwise break on windows
try t1()
catch { case _: java.io.IOException => () }
-
+
t2()
}
}