summaryrefslogtreecommitdiff
path: root/test/files/pos/typealiases.scala
diff options
context:
space:
mode:
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
+}