aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t8177d.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t8177d.scala')
-rw-r--r--tests/untried/pos/t8177d.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/untried/pos/t8177d.scala b/tests/untried/pos/t8177d.scala
new file mode 100644
index 000000000..d15a05a35
--- /dev/null
+++ b/tests/untried/pos/t8177d.scala
@@ -0,0 +1,12 @@
+// exercise coevolveSym
+trait HasElem { type A }
+trait View[AIn] {
+ val tc: HasElem { type A = AIn }
+ def f2(p: tc.A): tc.A = p
+}
+
+object Test {
+ val view: View[Int] = null
+
+ view f2 5 // fails
+}