summaryrefslogtreecommitdiff
path: root/test/neg/protected.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/neg/protected.check')
-rw-r--r--test/neg/protected.check5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/neg/protected.check b/test/neg/protected.check
new file mode 100644
index 0000000000..23a5865dab
--- /dev/null
+++ b/test/neg/protected.check
@@ -0,0 +1,5 @@
+protected.scala:11: error overriding method y in class A;
+ method y in class B has weaker access privileges; it should not be protected
+ protected def y(): int;
+ ^
+one error found