|
| 1 | +-- Error: tests/neg/i7709.scala:5:20 ----------------------------------------------------------------------------------- |
| 2 | +5 | class B extends X.Y // error |
| 3 | + | ^^^ |
| 4 | + | class Y cannot be accessed as a member of X.type from class B. |
| 5 | + | Access to protected class Y not permitted because enclosing object A |
| 6 | + | is not a subclass of object X where target is defined |
| 7 | +-- Error: tests/neg/i7709.scala:6:21 ----------------------------------------------------------------------------------- |
| 8 | +6 | class B2 extends X.Y: // error |
| 9 | + | ^^^ |
| 10 | + | class Y cannot be accessed as a member of X.type from class B2. |
| 11 | + | Access to protected class Y not permitted because enclosing object A |
| 12 | + | is not a subclass of object X where target is defined |
| 13 | +-- Error: tests/neg/i7709.scala:9:28 ----------------------------------------------------------------------------------- |
| 14 | +9 | class B4 extends B3(new X.Y) // error |
| 15 | + | ^^^ |
| 16 | + | class Y cannot be accessed as a member of X.type from class B4. |
| 17 | + | Access to protected class Y not permitted because enclosing object A |
| 18 | + | is not a subclass of object X where target is defined |
| 19 | +-- Error: tests/neg/i7709.scala:11:34 ---------------------------------------------------------------------------------- |
| 20 | +11 | def this(n: Int) = this(new X.Y().toString) // error |
| 21 | + | ^^^ |
| 22 | + | class Y cannot be accessed as a member of X.type from class B5. |
| 23 | + | Access to protected class Y not permitted because enclosing object A |
| 24 | + | is not a subclass of object X where target is defined |
| 25 | +-- Error: tests/neg/i7709.scala:13:20 ---------------------------------------------------------------------------------- |
| 26 | +13 | class B extends X.Y // error |
| 27 | + | ^^^ |
| 28 | + | class Y cannot be accessed as a member of X.type from class B. |
| 29 | + | Access to protected class Y not permitted because enclosing trait T |
| 30 | + | is not a subclass of object X where target is defined |
| 31 | +-- Error: tests/neg/i7709.scala:18:18 ---------------------------------------------------------------------------------- |
| 32 | +18 | def y = new xx.Y // error |
| 33 | + | ^^^^ |
| 34 | + | class Y cannot be accessed as a member of XX from class C. |
| 35 | + | Access to protected class Y not permitted because enclosing class C |
| 36 | + | is not a subclass of class XX where target is defined |
| 37 | +-- Error: tests/neg/i7709.scala:23:20 ---------------------------------------------------------------------------------- |
| 38 | +23 | def y = new xx.Y // error |
| 39 | + | ^^^^ |
| 40 | + | class Y cannot be accessed as a member of XX from class D. |
| 41 | + | Access to protected class Y not permitted because enclosing class D |
| 42 | + | is not a subclass of class XX where target is defined |
| 43 | +-- Error: tests/neg/i7709.scala:31:20 ---------------------------------------------------------------------------------- |
| 44 | +31 | class Q extends X.Y // error |
| 45 | + | ^^^ |
| 46 | + | class Y cannot be accessed as a member of p.X.type from class Q. |
| 47 | + | Access to protected class Y not permitted because enclosing package p |
| 48 | + | is not a subclass of object X in package p where target is defined |
0 commit comments