Skip to content

Commit

Permalink
Add test for scala#1181 to pending
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Mar 19, 2016
1 parent acd07c1 commit 40fc718
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/pending/pos/i1181.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
object Test {
def foo[M[_]](x: M[Int]) = x

type Alias[A] = (A, A)
val x: Alias[Int] = (1, 2)

foo[Alias](x) // ok
foo(x) // ok in scalac but fails in dotty with:
// error: type mismatch:
// found : (Int, Int)
// required: M[Int]
}

0 comments on commit 40fc718

Please sign in to comment.