diff options
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/bug464-neg.check | 16 | ||||
-rw-r--r-- | test/files/neg/bug464-neg.scala | 12 |
2 files changed, 28 insertions, 0 deletions
diff --git a/test/files/neg/bug464-neg.check b/test/files/neg/bug464-neg.check new file mode 100644 index 0000000000..7921c5a4f8 --- /dev/null +++ b/test/files/neg/bug464-neg.check @@ -0,0 +1,16 @@ +bug464-neg.scala:7: error: not found: value f1 + f1() + ^ +bug464-neg.scala:8: error: method f1 in class A cannot be accessed in A with ScalaObject + super.f1() + ^ +bug464-neg.scala:9: error: value f2 is not a member of B + def otherb(b2: B) = b2.f2() + ^ +bug464-neg.scala:10: error: method f3 in class A cannot be accessed in B + f3() + ^ +bug464-neg.scala:11: error: method f3 in class A cannot be accessed in A with ScalaObject + super.f3() + ^ +5 errors found diff --git a/test/files/neg/bug464-neg.scala b/test/files/neg/bug464-neg.scala new file mode 100644 index 0000000000..138fa8e869 --- /dev/null +++ b/test/files/neg/bug464-neg.scala @@ -0,0 +1,12 @@ +class A { + private[this] def f1() {} + protected[this] def f2() {} + private[A] def f3() {} +} +class B extends A { + f1() + super.f1() + def otherb(b2: B) = b2.f2() + f3() + super.f3() +}
\ No newline at end of file |