aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1181b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/i1181b.scala')
-rw-r--r--tests/pos/i1181b.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pos/i1181b.scala b/tests/pos/i1181b.scala
new file mode 100644
index 000000000..7694aed0b
--- /dev/null
+++ b/tests/pos/i1181b.scala
@@ -0,0 +1,11 @@
+class Foo[A]
+
+object Test {
+ def foo[M[_,_]](x: M[Int,Int]) = x
+
+ type Alias[X,Y] = Foo[X]
+ val x: Alias[Int,Int] = new Foo[Int]
+
+ foo[Alias](x) // ok
+ foo(x)
+}