aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/hk-subtyping.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-07-09 19:48:39 +0200
committerMartin Odersky <odersky@gmail.com>2016-07-11 13:35:08 +0200
commit540b38cbd769cee3e8bc72530829e65f7e87cddb (patch)
treeebad8602acbf1779d759070511ecad2ea6b7edb7 /tests/pos/hk-subtyping.scala
parent5e90215a01d74ef9c2b154727dea87ef2dcb3a1b (diff)
downloaddotty-540b38cbd769cee3e8bc72530829e65f7e87cddb.tar.gz
dotty-540b38cbd769cee3e8bc72530829e65f7e87cddb.tar.bz2
dotty-540b38cbd769cee3e8bc72530829e65f7e87cddb.zip
More tests
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]]
+ }
+
+
+}