File: protected-static-fail.check

package info (click to toggle)
scala 2.11.12-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 62,924 kB
  • sloc: javascript: 28,808; java: 13,415; xml: 3,135; sh: 1,620; python: 756; makefile: 38; awk: 36; ansic: 6
file content (16 lines) | stat: -rw-r--r-- 634 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
S.scala:5: error: method f in object J cannot be accessed in object bippy.J
    J.f()
      ^
S.scala:6: error: method f1 in object S1 cannot be accessed in object bippy.S1
 Access to protected method f1 not permitted because
 enclosing object Test in package bippy is not a subclass of
 object S1 in package bippy where target is defined
    S1.f1()
       ^
S.scala:8: error: method f2 in class S2 cannot be accessed in bippy.S2
 Access to protected method f2 not permitted because
 enclosing object Test in package bippy is not a subclass of
 class S2 in package bippy where target is defined
    x.f2()
      ^
three errors found