diff options
Diffstat (limited to 'tests/untried/neg/abstract-inaccessible.check')
-rw-r--r-- | tests/untried/neg/abstract-inaccessible.check | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/untried/neg/abstract-inaccessible.check b/tests/untried/neg/abstract-inaccessible.check new file mode 100644 index 000000000..d56f5691b --- /dev/null +++ b/tests/untried/neg/abstract-inaccessible.check @@ -0,0 +1,15 @@ +abstract-inaccessible.scala:5: warning: method implementMe in trait YourTrait references private[foo] trait Bippy. +Classes which cannot access Bippy may be unable to provide a concrete implementation of implementMe. + def implementMe(f: Int => (String, Bippy)): Unit + ^ +abstract-inaccessible.scala:6: warning: method overrideMe in trait YourTrait references private[foo] trait Bippy. +Classes which cannot access Bippy may be unable to override overrideMe. + def overrideMe[T <: Bippy](x: T): T = x + ^ +abstract-inaccessible.scala:7: warning: method overrideMeAlso in trait YourTrait references private[foo] trait Bippy. +Classes which cannot access Bippy may be unable to override overrideMeAlso. + def overrideMeAlso(x: Map[Int, Set[Bippy]]) = 5 + ^ +error: No warnings can be incurred under -Xfatal-warnings. +three warnings found +one error found |