summaryrefslogtreecommitdiff
path: root/test/files/pos/bug796.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/bug796.scala')
-rw-r--r--test/files/pos/bug796.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/pos/bug796.scala b/test/files/pos/bug796.scala
index 756c103e7c..dfd312ec67 100644
--- a/test/files/pos/bug796.scala
+++ b/test/files/pos/bug796.scala
@@ -9,13 +9,13 @@
object Test extends Application {
object Twice {
- def apply(x: int) = x * 2
- def unapply(x: int): Option[Tuple1[int]] =
+ def apply(x: Int) = x * 2
+ def unapply(x: Int): Option[Tuple1[int]] =
if (x % 2 == 0) Some(Tuple1(x / 2))
else None
}
- def test(x: int) = x match {
+ def test(x: Int) = x match {
case Twice(y) => "x is two times "+y
case _ => "x is odd"
}