summaryrefslogtreecommitdiff
path: root/test/files/run/t7120/Derived_2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t7120/Derived_2.scala')
-rw-r--r--test/files/run/t7120/Derived_2.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t7120/Derived_2.scala b/test/files/run/t7120/Derived_2.scala
new file mode 100644
index 0000000000..e0de629f82
--- /dev/null
+++ b/test/files/run/t7120/Derived_2.scala
@@ -0,0 +1,9 @@
+trait Derived extends Base[ Container ] {
+ protected def defect = { case c: Container => c.v.toString }
+}
+
+// Erasure was ignoring the prefix `Derived#7001.this` when erasing
+// A1, and consequently used `Object` rather than `Container`, which
+// was only seen because that signature clashed with the bridge method.
+//
+// applyOrElse[A1 <: Derived#7001.this.UserType#7318, B1 >: String](x1: A1)