|
7 | 7 | | ^^^^^^^^^^^^^^
|
8 | 8 | | no eligible member scanAll at this.scanUnit
|
9 | 9 | | this.scanUnit.scanAll cannot be exported because it is not accessible
|
10 |
| --- [E120] Naming Error: tests/neg/exports.scala:28:8 ------------------------------------------------------------------- |
11 |
| -28 | def status: List[String] = printUnit.status ++ scanUnit.status // error: double definition w/ printUnit.status |
12 |
| - | ^ |
13 |
| - | Double definition: |
14 |
| - | final def status: List[String] in class Copier at line 23 and |
15 |
| - | def status: List[String] in class Copier at line 28 |
16 |
| - | have the same type after erasure. |
17 |
| - | |
18 |
| - | Consider adding a @targetName annotation to one of the conflicting definitions |
19 |
| - | for disambiguation. |
| 10 | +-- Error: tests/neg/exports.scala:25:21 -------------------------------------------------------------------------------- |
| 11 | +25 | export printUnit.bitmap // error: no eligible member |
| 12 | + | ^ |
| 13 | + | non-private given instance bitmap in class Copier refers to private value printUnit |
| 14 | + | in its type signature => object Copier.this.printUnit.bitmap |
20 | 15 | -- [E120] Naming Error: tests/neg/exports.scala:23:33 ------------------------------------------------------------------
|
21 | 16 | 23 | export printUnit.{stat => _, _} // error: double definition
|
22 | 17 | | ^
|
23 | 18 | | Double definition:
|
24 |
| - | final def status: List[String] in class Copier at line 24 and |
| 19 | + | def status: List[String] in class Copier at line 28 and |
25 | 20 | | final def status: List[String] in class Copier at line 23
|
26 | 21 | | have the same type after erasure.
|
27 | 22 | |
|
|
31 | 26 | 24 | export scanUnit._ // error: double definition
|
32 | 27 | | ^
|
33 | 28 | | Double definition:
|
34 |
| - | final def status: List[String] in class Copier at line 26 and |
| 29 | + | final def status: List[String] in class Copier at line 23 and |
35 | 30 | | final def status: List[String] in class Copier at line 24
|
36 | 31 | | have the same type after erasure.
|
37 | 32 | |
|
38 | 33 | | Consider adding a @targetName annotation to one of the conflicting definitions
|
39 | 34 | | for disambiguation.
|
| 35 | +-- [E120] Naming Error: tests/neg/exports.scala:26:21 ------------------------------------------------------------------ |
| 36 | +26 | export printUnit.status // error: double definition |
| 37 | + | ^ |
| 38 | + | Double definition: |
| 39 | + | final def status: List[String] in class Copier at line 24 and |
| 40 | + | final def status: List[String] in class Copier at line 26 |
| 41 | + | have the same type after erasure. |
| 42 | + | |
| 43 | + | Consider adding a @targetName annotation to one of the conflicting definitions |
| 44 | + | for disambiguation. |
40 | 45 | -- Error: tests/neg/exports.scala:35:24 --------------------------------------------------------------------------------
|
41 | 46 | 35 | export this.{concat => ++} // error: no eligible member
|
42 | 47 | | ^^^^^^^^^^^^
|
|
47 | 52 | | ^^^
|
48 | 53 | | no eligible member foo at this.foo
|
49 | 54 | | this.foo.foo cannot be exported because it is already a member of class Foo
|
| 55 | +-- [E120] Naming Error: tests/neg/exports.scala:46:15 ------------------------------------------------------------------ |
| 56 | +46 | export bar._ // error: double definition |
| 57 | + | ^ |
| 58 | + | Double definition: |
| 59 | + | val bar: Bar in class Baz at line 45 and |
| 60 | + | final def bar: (Baz.this.bar.bar : => (Baz.this.bar.baz.bar : Bar)) in class Baz at line 46 |
50 | 61 | -- [E083] Type Error: tests/neg/exports.scala:57:11 --------------------------------------------------------------------
|
51 | 62 | 57 | export printer.* // error: not stable
|
52 | 63 | | ^^^^^^^
|
|
0 commit comments