blob: 8b06799f0dd33b139a4a32b531a1ece0ed87af47 (
plain) (
tree)
|
|
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 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
|