summaryrefslogtreecommitdiff
path: root/test/files/pos/typealiases.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2008-05-20 13:29:39 +0000
committermichelou <michelou@epfl.ch>2008-05-20 13:29:39 +0000
commitc1f07338ed21e551446a5c98d262d738a9b7b0ce (patch)
tree8143f69f0b97ff8bb02600991476b104afa652dc /test/files/pos/typealiases.scala
parent7d71e4cf09074f3d1cf7539d28bba64a976524d6 (diff)
downloadscala-c1f07338ed21e551446a5c98d262d738a9b7b0ce.tar.gz
scala-c1f07338ed21e551446a5c98d262d738a9b7b0ce.tar.bz2
scala-c1f07338ed21e551446a5c98d262d738a9b7b0ce.zip
int -> Int, etc..
Diffstat (limited to 'test/files/pos/typealiases.scala')
-rw-r--r--test/files/pos/typealiases.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/pos/typealiases.scala b/test/files/pos/typealiases.scala
index c32a3e3a78..d03b521f77 100644
--- a/test/files/pos/typealiases.scala
+++ b/test/files/pos/typealiases.scala
@@ -2,9 +2,9 @@ package foo
trait Test[T] {
type Check[T] = Array[T] => Unit;
- type MyPair[S] = Pair[T, S]
+ type MyPair[S] = (T, S)
- val pair1: Pair[T, Int]
+ val pair1: (T, Int)
val pair: MyPair[Int] = pair1
def check(xs: Array[T], c: Check[T]) = c(xs)
@@ -16,5 +16,5 @@ object main extends Test[Int] {
implicit def topair(x: Int): Pair[Int, Int] = (x,x)
val pair2: MyPair[Int] = 1
- val x: short = 1
-} \ No newline at end of file
+ val x: Short = 1
+}