summaryrefslogtreecommitdiff
path: root/test/files/neg/t3934.check
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2010-10-19 13:33:33 +0000
committerMartin Odersky <odersky@gmail.com>2010-10-19 13:33:33 +0000
commit79389bc80d08b18e20372c181a5749b8efc9614d (patch)
treec049edb7f443ca97da937d120906ca79eda41b6d /test/files/neg/t3934.check
parented65254c4f1bfc0ba7f8b8053bdafbdd8bccb670 (diff)
downloadscala-79389bc80d08b18e20372c181a5749b8efc9614d.tar.gz
scala-79389bc80d08b18e20372c181a5749b8efc9614d.tar.bz2
scala-79389bc80d08b18e20372c181a5749b8efc9614d.zip
Closes #3934 by fixing a typo (missing + in str...
Closes #3934 by fixing a typo (missing + in string concat). Better effect analysis would have caught that one at compile-time. Review by extempore.
Diffstat (limited to 'test/files/neg/t3934.check')
-rw-r--r--test/files/neg/t3934.check13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/t3934.check b/test/files/neg/t3934.check
new file mode 100644
index 0000000000..ebc6dfb876
--- /dev/null
+++ b/test/files/neg/t3934.check
@@ -0,0 +1,13 @@
+t3934.scala:15: error: method f2 in class J cannot be accessed in test.J
+ Access to protected method f2 not permitted because
+ enclosing class class S1 in package nest is not a subclass of
+ class J in package test where target is defined
+ def g2(x: J) = x.f2()
+ ^
+t3934.scala:20: error: method f2 in class J cannot be accessed in test.J
+ Access to protected method f2 not permitted because
+ prefix type test.J does not conform to
+ class S2 in package nest where the access take place
+ def g2(x: J) = x.f2()
+ ^
+two errors found