aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/hk-subtyping.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/hk-subtyping.scala')
-rw-r--r--tests/pos/hk-subtyping.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/pos/hk-subtyping.scala b/tests/pos/hk-subtyping.scala
new file mode 100644
index 000000000..a004c2618
--- /dev/null
+++ b/tests/pos/hk-subtyping.scala
@@ -0,0 +1,13 @@
+object Test {
+
+ def compare[S <: T, T] = ()
+
+ compare[Int, Int]
+ compare[Int, Any]
+
+ def f[C <: List] = {
+ compare[C[Int], List[Int]]
+ }
+
+
+}