summaryrefslogtreecommitdiff
path: root/test/files/pos/thistype.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/thistype.scala')
-rw-r--r--test/files/pos/thistype.scala7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/files/pos/thistype.scala b/test/files/pos/thistype.scala
index c8f7ec9678..ac315f3323 100644
--- a/test/files/pos/thistype.scala
+++ b/test/files/pos/thistype.scala
@@ -5,10 +5,11 @@ object Test {
}
class MouseCtl extends Ctl {
- def mouseDown(x: int, y: int): unit = { Console.println("mouse down"); }
+ def mouseDown(x: Int, y: Int) { Console.println("mouse down") }
}
- def main(args: Array[String]) =
- new MouseCtl().enable.mouseDown(1, 2);
+ def main(args: Array[String]) {
+ new MouseCtl().enable.mouseDown(1, 2)
+ }
}