aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t5071.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t5071.scala')
-rw-r--r--tests/untried/pos/t5071.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/untried/pos/t5071.scala b/tests/untried/pos/t5071.scala
new file mode 100644
index 000000000..44ad6276f
--- /dev/null
+++ b/tests/untried/pos/t5071.scala
@@ -0,0 +1,18 @@
+// abstract
+trait Foo[@specialized A, Repr] {
+ self: Repr =>
+}
+trait Bar[A] extends Foo[A, Object] { }
+class Baz extends Foo[Int, Baz] { }
+
+// concrete
+trait Bippy {
+ def f(x: Int) = 5
+}
+trait FooC[@specialized A] {
+ self: Bippy =>
+
+ f(10)
+}
+
+class BazC extends FooC[Int] with Bippy { }