aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t8143a.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t8143a.check')
-rw-r--r--tests/untried/neg/t8143a.check5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/untried/neg/t8143a.check b/tests/untried/neg/t8143a.check
new file mode 100644
index 000000000..4e11000a2
--- /dev/null
+++ b/tests/untried/neg/t8143a.check
@@ -0,0 +1,5 @@
+t8143a.scala:2: error: overriding method f in class Foo of type => Int;
+ method f has weaker access privileges; it should not be private
+class Bar extends Foo { private def f = 10 }
+ ^
+one error found