|
1 | | --- [E173] Reference Error: tests/neg/i18686.scala:9:16 ----------------------------------------------------------------- |
2 | | -9 | println(Foo.Bar1) // error |
3 | | - | ^^^^^^^^ |
4 | | - | value Bar1 cannot be accessed as a member of Foo.type from object Main. |
5 | | --- [E173] Reference Error: tests/neg/i18686.scala:10:16 ---------------------------------------------------------------- |
6 | | -10 | println(Foo.Bar2) // error |
| 1 | +-- [E173] Reference Error: tests/neg/i18686.scala:13:16 ---------------------------------------------------------------- |
| 2 | +13 | println(Foo.Bar1) // error |
| 3 | + | ^^^^^^^^ |
| 4 | + | value Bar1 cannot be accessed as a member of Foo.type from object Main. |
| 5 | + | private value Bar1 can only be accessed from object Foo. |
| 6 | +-- [E173] Reference Error: tests/neg/i18686.scala:14:16 ---------------------------------------------------------------- |
| 7 | +14 | println(Foo.Bar2) // error |
7 | 8 | | ^^^^^^^^ |
8 | 9 | | value Bar2 cannot be accessed as a member of Foo.type from object Main. |
9 | | --- [E173] Reference Error: tests/neg/i18686.scala:11:16 ---------------------------------------------------------------- |
10 | | -11 | println(Foo.Bar3) // error |
| 10 | + | private[Foo] value Bar2 can only be accessed from object Foo. |
| 11 | +-- [E173] Reference Error: tests/neg/i18686.scala:15:16 ---------------------------------------------------------------- |
| 12 | +15 | println(Foo.Bar3) // error |
11 | 13 | | ^^^^^^^^ |
12 | 14 | | value Bar3 cannot be accessed as a member of Foo.type from object Main. |
13 | | - | Protected value Bar3 can only be accessed from object Foo. |
| 15 | + | protected value Bar3 can only be accessed from object Foo. |
| 16 | +-- [E173] Reference Error: tests/neg/i18686.scala:16:16 ---------------------------------------------------------------- |
| 17 | +16 | println(Foo.Bar4) // error |
| 18 | + | ^^^^^^^^ |
| 19 | + | value Bar4 cannot be accessed as a member of Foo.type from object Main. |
| 20 | + | protected[Foo] value Bar4 can only be accessed from object Foo. |
| 21 | +-- [E173] Reference Error: tests/neg/i18686.scala:17:20 ---------------------------------------------------------------- |
| 22 | +17 | println(Foo.Baz.Bar5) // error |
| 23 | + | ^^^^^^^^^^^^ |
| 24 | + | value Bar5 cannot be accessed as a member of Foo.Baz.type from object Main. |
| 25 | + | private[Foo] value Bar5 can only be accessed from object Foo. |
| 26 | +-- [E173] Reference Error: tests/neg/i18686.scala:18:20 ---------------------------------------------------------------- |
| 27 | +18 | println(Foo.Baz.Bar6) // error |
| 28 | + | ^^^^^^^^^^^^ |
| 29 | + | value Bar6 cannot be accessed as a member of Foo.Baz.type from object Main. |
| 30 | + | protected[Foo] value Bar6 can only be accessed from object Foo. |
0 commit comments