summaryrefslogtreecommitdiff
path: root/test/files/neg/abstract-inaccessible.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/abstract-inaccessible.scala')
-rw-r--r--test/files/neg/abstract-inaccessible.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/neg/abstract-inaccessible.scala b/test/files/neg/abstract-inaccessible.scala
new file mode 100644
index 0000000000..3c80f30522
--- /dev/null
+++ b/test/files/neg/abstract-inaccessible.scala
@@ -0,0 +1,9 @@
+package foo {
+ private[foo] trait Bippy { }
+
+ trait YourTrait {
+ def implementMe(f: Int => (String, Bippy)): Unit
+ def overrideMe[T <: Bippy](x: T): T = x
+ def overrideMeAlso(x: Map[Int, Set[Bippy]]) = 5
+ }
+}