aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos/t6169/t6169.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pending/pos/t6169/t6169.scala')
-rw-r--r--tests/pending/pos/t6169/t6169.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pending/pos/t6169/t6169.scala b/tests/pending/pos/t6169/t6169.scala
new file mode 100644
index 000000000..84b2d2dad
--- /dev/null
+++ b/tests/pending/pos/t6169/t6169.scala
@@ -0,0 +1,7 @@
+class Test {
+ class MyExist extends ExistF[MyExist]
+ // SI-8197, SI-6169: java infers the bounds of existentials, so we have to as well now that SI-1786 is fixed...
+ def stringy: Exist[_ <: String] = (new Exist[String]).foo
+ def fbounded: (ExistF[t] forSome {type t <: ExistF[t] }) = (new MyExist).foo
+ def indir: ExistIndir[_ <: String, _ <: String] = (new ExistIndir[String, String]).foo
+}