diff options
author | michelou <michelou@epfl.ch> | 2008-06-10 10:27:45 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2008-06-10 10:27:45 +0000 |
commit | 0dabdc7b17a02f1d36a99cd21acfdc0b2498f951 (patch) | |
tree | 05e7999dc39a0faf11ca743d7314b178a9823026 /test/files/pos/bug796.scala | |
parent | 943f6dda3b32057a3d9e91c68baac8971d94e567 (diff) | |
download | scala-0dabdc7b17a02f1d36a99cd21acfdc0b2498f951.tar.gz scala-0dabdc7b17a02f1d36a99cd21acfdc0b2498f951.tar.bz2 scala-0dabdc7b17a02f1d36a99cd21acfdc0b2498f951.zip |
int -> Int, etc..
Diffstat (limited to 'test/files/pos/bug796.scala')
-rw-r--r-- | test/files/pos/bug796.scala | 6 |
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" } |