aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i2201c.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/i2201c.scala')
-rw-r--r--tests/pos/i2201c.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pos/i2201c.scala b/tests/pos/i2201c.scala
new file mode 100644
index 000000000..91f2529d9
--- /dev/null
+++ b/tests/pos/i2201c.scala
@@ -0,0 +1,11 @@
+object Test {
+ implicit val theAnswer: Int = 42
+
+ type Swap[A, B] = (B, A)
+
+ def foo[M[_, _], T, S](x: M[T, S])(implicit ev: T) = ev
+
+ val a: Swap[Int, String] = ("hi", 1)
+
+ foo(a)
+}