|
8 | 8 | | |
9 | 9 | | Consider adding a @targetName annotation to one of the conflicting definitions |
10 | 10 | | for disambiguation. |
| 11 | + | |
| 12 | + | longer explanation available when compiling with `-explain` |
11 | 13 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:21:5 ---------------------------------------------------------- |
12 | 14 | 21 | def foo(x: List[A]): Function2[B, B, B] = ??? // error |
13 | 15 | | ^ |
|
21 | 23 | | Conflicting definitions: |
22 | 24 | | val foo: Int in class Test4 at line 25 and |
23 | 25 | | def foo: Int in class Test4 at line 26 |
| 26 | + | |
| 27 | + | longer explanation available when compiling with `-explain` |
24 | 28 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:31:5 ---------------------------------------------------------- |
25 | 29 | 31 | val foo = 1 // error |
26 | 30 | | ^ |
27 | 31 | | Conflicting definitions: |
28 | 32 | | def foo: Int in class Test4b at line 30 and |
29 | 33 | | val foo: Int in class Test4b at line 31 |
| 34 | + | |
| 35 | + | longer explanation available when compiling with `-explain` |
30 | 36 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:36:5 ---------------------------------------------------------- |
31 | 37 | 36 | var foo = 1 // error |
32 | 38 | | ^ |
33 | 39 | | Conflicting definitions: |
34 | 40 | | def foo: Int in class Test4c at line 35 and |
35 | 41 | | var foo: Int in class Test4c at line 36 |
| 42 | + | |
| 43 | + | longer explanation available when compiling with `-explain` |
36 | 44 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:41:5 ---------------------------------------------------------- |
37 | 45 | 41 | def foo = 2 // error |
38 | 46 | | ^ |
39 | 47 | | Conflicting definitions: |
40 | 48 | | var foo: Int in class Test4d at line 40 and |
41 | 49 | | def foo: Int in class Test4d at line 41 |
| 50 | + | |
| 51 | + | longer explanation available when compiling with `-explain` |
42 | 52 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:55:5 ---------------------------------------------------------- |
43 | 53 | 55 | def foo(x: List[B]): Function1[B, B] = ??? // error: same jvm signature |
44 | 54 | | ^ |
|
49 | 59 | | |
50 | 60 | | Consider adding a @targetName annotation to one of the conflicting definitions |
51 | 61 | | for disambiguation. |
| 62 | + | |
| 63 | + | longer explanation available when compiling with `-explain` |
52 | 64 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:62:5 ---------------------------------------------------------- |
53 | 65 | 62 | def foo(x: List[A]): Function2[B, B, B] = ??? // error |
54 | 66 | | ^ |
|
62 | 74 | | Conflicting definitions: |
63 | 75 | | val foo: Int in class Test8 at line 66 and |
64 | 76 | | def foo: Int in class Test8 at line 67 |
| 77 | + | |
| 78 | + | longer explanation available when compiling with `-explain` |
65 | 79 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:72:5 ---------------------------------------------------------- |
66 | 80 | 72 | val foo = 1 // error |
67 | 81 | | ^ |
68 | 82 | | Conflicting definitions: |
69 | 83 | | def foo: Int in class Test8b at line 71 and |
70 | 84 | | val foo: Int in class Test8b at line 72 |
| 85 | + | |
| 86 | + | longer explanation available when compiling with `-explain` |
71 | 87 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:77:5 ---------------------------------------------------------- |
72 | 88 | 77 | var foo = 1 // error |
73 | 89 | | ^ |
74 | 90 | | Conflicting definitions: |
75 | 91 | | def foo: Int in class Test8c at line 76 and |
76 | 92 | | var foo: Int in class Test8c at line 77 |
| 93 | + | |
| 94 | + | longer explanation available when compiling with `-explain` |
77 | 95 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:82:5 ---------------------------------------------------------- |
78 | 96 | 82 | def foo = 2 // error |
79 | 97 | | ^ |
80 | 98 | | Conflicting definitions: |
81 | 99 | | var foo: Int in class Test8d at line 81 and |
82 | 100 | | def foo: Int in class Test8d at line 82 |
| 101 | + | |
| 102 | + | longer explanation available when compiling with `-explain` |
83 | 103 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:88:5 ---------------------------------------------------------- |
84 | 104 | 88 | def foo: String // error |
85 | 105 | | ^ |
86 | 106 | | Conflicting definitions: |
87 | 107 | | val foo: Int in class Test9 at line 87 and |
88 | 108 | | def foo: String in class Test9 at line 88 |
| 109 | + | |
| 110 | + | longer explanation available when compiling with `-explain` |
89 | 111 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:92:5 ---------------------------------------------------------- |
90 | 112 | 92 | def foo: Int // error |
91 | 113 | | ^ |
92 | 114 | | Conflicting definitions: |
93 | 115 | | val foo: Int in class Test10 at line 91 and |
94 | 116 | | def foo: Int in class Test10 at line 92 |
| 117 | + | |
| 118 | + | longer explanation available when compiling with `-explain` |
95 | 119 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:96:5 ---------------------------------------------------------- |
96 | 120 | 96 | def foo: String // error |
97 | 121 | | ^ |
98 | 122 | | Conflicting definitions: |
99 | 123 | | val foo: Int in class Test11 at line 95 and |
100 | 124 | | def foo: String in class Test11 at line 96 |
| 125 | + | |
| 126 | + | longer explanation available when compiling with `-explain` |
101 | 127 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:100:5 --------------------------------------------------------- |
102 | 128 | 100 | def foo: Int // error |
103 | 129 | | ^ |
104 | 130 | | Conflicting definitions: |
105 | 131 | | val foo: Int in class Test12 at line 99 and |
106 | 132 | | def foo: Int in class Test12 at line 100 |
| 133 | + | |
| 134 | + | longer explanation available when compiling with `-explain` |
107 | 135 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:104:5 --------------------------------------------------------- |
108 | 136 | 104 | def foo: String // error |
109 | 137 | | ^ |
110 | 138 | | Conflicting definitions: |
111 | 139 | | var foo: Int in class Test13 at line 103 and |
112 | 140 | | def foo: String in class Test13 at line 104 |
| 141 | + | |
| 142 | + | longer explanation available when compiling with `-explain` |
113 | 143 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:108:5 --------------------------------------------------------- |
114 | 144 | 108 | def foo: Int // error |
115 | 145 | | ^ |
116 | 146 | | Conflicting definitions: |
117 | 147 | | var foo: Int in class Test14 at line 107 and |
118 | 148 | | def foo: Int in class Test14 at line 108 |
| 149 | + | |
| 150 | + | longer explanation available when compiling with `-explain` |
119 | 151 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:112:5 --------------------------------------------------------- |
120 | 152 | 112 | def foo: String // error |
121 | 153 | | ^ |
122 | 154 | | Conflicting definitions: |
123 | 155 | | var foo: Int in class Test15 at line 111 and |
124 | 156 | | def foo: String in class Test15 at line 112 |
| 157 | + | |
| 158 | + | longer explanation available when compiling with `-explain` |
125 | 159 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:116:5 --------------------------------------------------------- |
126 | 160 | 116 | def foo: Int // error |
127 | 161 | | ^ |
128 | 162 | | Conflicting definitions: |
129 | 163 | | var foo: Int in class Test16 at line 115 and |
130 | 164 | | def foo: Int in class Test16 at line 116 |
| 165 | + | |
| 166 | + | longer explanation available when compiling with `-explain` |
0 commit comments