summaryrefslogtreecommitdiff
path: root/test/pending/pos/t5559.scala
diff options
context:
space:
mode:
authorAleksandar Prokopec <axel22@gmail.com>2012-05-02 18:20:58 +0200
committerAleksandar Prokopec <axel22@gmail.com>2012-05-02 18:20:58 +0200
commit6734215412aa4640d8ad6b00d4fedf43d7e8d0a4 (patch)
tree8ba87f0d845c65d1c07d5350ee00f5a7b9d98723 /test/pending/pos/t5559.scala
parentbed7c1367f8cb9aaf9a93d797a5db512d610b826 (diff)
downloadscala-6734215412aa4640d8ad6b00d4fedf43d7e8d0a4.tar.gz
scala-6734215412aa4640d8ad6b00d4fedf43d7e8d0a4.tar.bz2
scala-6734215412aa4640d8ad6b00d4fedf43d7e8d0a4.zip
Test case for si-5559.
Diffstat (limited to 'test/pending/pos/t5559.scala')
-rw-r--r--test/pending/pos/t5559.scala23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/pending/pos/t5559.scala b/test/pending/pos/t5559.scala
new file mode 100644
index 0000000000..586e52cd4f
--- /dev/null
+++ b/test/pending/pos/t5559.scala
@@ -0,0 +1,23 @@
+
+
+
+
+object Test {
+
+ class Inv[T]
+
+ def foo[S](interface: Inv[_ >: S], implementation: Inv[S]) {}
+
+ def bar[R, T <: R](interface: Inv[R], impl: Inv[T]) {
+ //foo[T](interface, impl)
+ foo(interface, impl) // Compilation Error
+ // Inv[R] <: Inv[_ >: S]
+ // Inv[T] <: Inv[S]
+ // ----------------------
+ // R >: S
+ // T == S
+ }
+
+}
+
+