|
| 1 | +-- [E173] Reference Error: tests/neg/i25442/protected-constructors.scala:7:22 ------------------------------------------ |
| 2 | +7 |class C extends B(new A(1)) // error |
| 3 | + | ^ |
| 4 | + | constructor A cannot be accessed as a member of protectedCtors.A from class C. |
| 5 | + | protected constructor A can only be accessed from class C in package protectedCtors or one of its subclasses. |
| 6 | +-- [E173] Reference Error: tests/neg/i25442/protected-constructors.scala:10:22 ----------------------------------------- |
| 7 | +10 |class E extends D(new D(1)) // error |
| 8 | + | ^ |
| 9 | + | constructor D cannot be accessed as a member of protectedCtors.D from class E. |
| 10 | + | protected constructor D can only be accessed from class E in package protectedCtors or one of its subclasses. |
| 11 | +-- Error: tests/neg/i25442/protected-constructors.scala:18:24 ---------------------------------------------------------- |
| 12 | +18 |class J extends G(new F(1)) // error: protected primary in super args |
| 13 | + | ^ |
| 14 | + | too many arguments for constructor F in class F: (): protectedCtors.F |
| 15 | +-- [E173] Reference Error: tests/neg/i25442/protected-constructors.scala:22:14 ----------------------------------------- |
| 16 | +22 | val k = new A(1) // error |
| 17 | + | ^ |
| 18 | + | constructor A cannot be accessed as a member of protectedCtors.A from class K. |
| 19 | + | protected constructor A can only be accessed from class K in package protectedCtors or one of its subclasses. |
| 20 | +-- [E173] Reference Error: tests/neg/i25442/protected-constructors.scala:27:28 ----------------------------------------- |
| 21 | +27 |class N extends M(() => new A(2)) // error |
| 22 | + | ^ |
| 23 | + | constructor A cannot be accessed as a member of protectedCtors.A from class N. |
| 24 | + | protected constructor A can only be accessed from class N in package protectedCtors or one of its subclasses. |
| 25 | +-- [E173] Reference Error: tests/neg/i25442/test.scala:7:15 ------------------------------------------------------------ |
| 26 | +7 | def t2 = new I(42) // error |
| 27 | + | ^ |
| 28 | + | constructor I cannot be accessed as a member of I from class M. |
| 29 | + | protected constructor I can only be accessed from class M or one of its subclasses. |
| 30 | +-- [E173] Reference Error: tests/neg/i25442/test.scala:8:35 ------------------------------------------------------------ |
| 31 | +8 | def this(x: Int) = { this(); new I(x) } // error |
| 32 | + | ^ |
| 33 | + | constructor I cannot be accessed as a member of I from class M. |
| 34 | + | protected constructor I can only be accessed from class M or one of its subclasses. |
0 commit comments