aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t4205
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t4205')
-rw-r--r--tests/untried/pos/t4205/1.scala3
-rw-r--r--tests/untried/pos/t4205/2.scala4
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/pos/t4205/1.scala b/tests/untried/pos/t4205/1.scala
new file mode 100644
index 000000000..003763f6c
--- /dev/null
+++ b/tests/untried/pos/t4205/1.scala
@@ -0,0 +1,3 @@
+trait A[OUT[_]] {
+ null.asInstanceOf[B[OUT]].b1("")
+}
diff --git a/tests/untried/pos/t4205/2.scala b/tests/untried/pos/t4205/2.scala
new file mode 100644
index 000000000..398fbdecc
--- /dev/null
+++ b/tests/untried/pos/t4205/2.scala
@@ -0,0 +1,4 @@
+trait B[OUT[_]] {
+ def b1[A](a: A) = b2[OUT]
+ def b2[OUT1[_]] = ()
+}