diff options
author | Martin Odersky <odersky@gmail.com> | 2003-03-03 14:33:53 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-03-03 14:33:53 +0000 |
commit | 6749e5dd658522cb63600021a9ee5a86f911cfeb (patch) | |
tree | a22d4bf7f2bf71b5775418dfddaa31a1640313d1 /test | |
parent | e1fb3fb655a067039870016b3a47e2305d692d98 (diff) | |
download | scala-6749e5dd658522cb63600021a9ee5a86f911cfeb.tar.gz scala-6749e5dd658522cb63600021a9ee5a86f911cfeb.tar.bz2 scala-6749e5dd658522cb63600021a9ee5a86f911cfeb.zip |
*** empty log message ***
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/List1.scala | 2 | ||||
-rw-r--r-- | test/files/pos/lambda.scala | 2 | ||||
-rw-r--r-- | test/pos/List1.scala | 2 | ||||
-rw-r--r-- | test/pos/lambda.scala | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/test/files/pos/List1.scala b/test/files/pos/List1.scala index a52c95b1c8..0e2ad848c9 100644 --- a/test/files/pos/List1.scala +++ b/test/files/pos/List1.scala @@ -8,7 +8,7 @@ module lists { } def Nil[a] = new List[a] { - def isEmpty = True; + def isEmpty: True.type = True; def head = error[a]("head of Nil"); def tail = error[List[a]]("tail of Nil"); } diff --git a/test/files/pos/lambda.scala b/test/files/pos/lambda.scala index 7e687df4ef..0c85672ac1 100644 --- a/test/files/pos/lambda.scala +++ b/test/files/pos/lambda.scala @@ -4,5 +4,5 @@ module test { def twice[a](f: a => a): a => a = x: a => f(f(x)); - def main = apply@[Int,Int](twice@[Int](x: Int => x))(1); + def main = apply[Int,Int](twice@[Int](x: Int => x))(1); }
\ No newline at end of file diff --git a/test/pos/List1.scala b/test/pos/List1.scala index a52c95b1c8..0e2ad848c9 100644 --- a/test/pos/List1.scala +++ b/test/pos/List1.scala @@ -8,7 +8,7 @@ module lists { } def Nil[a] = new List[a] { - def isEmpty = True; + def isEmpty: True.type = True; def head = error[a]("head of Nil"); def tail = error[List[a]]("tail of Nil"); } diff --git a/test/pos/lambda.scala b/test/pos/lambda.scala index 7e687df4ef..0c85672ac1 100644 --- a/test/pos/lambda.scala +++ b/test/pos/lambda.scala @@ -4,5 +4,5 @@ module test { def twice[a](f: a => a): a => a = x: a => f(f(x)); - def main = apply@[Int,Int](twice@[Int](x: Int => x))(1); + def main = apply[Int,Int](twice@[Int](x: Int => x))(1); }
\ No newline at end of file |