summaryrefslogtreecommitdiff
path: root/test/files/neg/t8143a.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t8143a.check')
-rw-r--r--test/files/neg/t8143a.check5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/neg/t8143a.check b/test/files/neg/t8143a.check
new file mode 100644
index 0000000000..4e11000a2a
--- /dev/null
+++ b/test/files/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