aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t5352.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t5352.check')
-rw-r--r--tests/untried/neg/t5352.check13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/untried/neg/t5352.check b/tests/untried/neg/t5352.check
new file mode 100644
index 000000000..1675da9e9
--- /dev/null
+++ b/tests/untried/neg/t5352.check
@@ -0,0 +1,13 @@
+t5352.scala:11: error: type mismatch;
+ found : boop.Bar
+ required: boop.BarF
+ (which expands to) AnyRef{def f(): Int}
+ x = xs.head
+ ^
+t5352.scala:14: error: method f in class Bar1 cannot be accessed in boop.Bar1
+ Access to protected method f not permitted because
+ enclosing object boop is not a subclass of
+ class Bar1 in object boop where target is defined
+ (new Bar1).f
+ ^
+two errors found