|
1 | 1 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:14:5 ---------------------------------------------------------- |
2 | 2 | 14 | def foo(x: List[B]): Function1[B, B] = ??? // error: same jvm signature |
3 | 3 | | ^ |
4 | | - | Double definition: |
| 4 | + | Conflicting definitions: |
5 | 5 | | def foo(x: List[A]): A => A in class Test2 at line 13 and |
6 | 6 | | def foo(x: List[B]): B => B in class Test2 at line 14 |
7 | | - | have the same type after erasure. |
| 7 | + | have the same type (x: List): Function1 after erasure. |
8 | 8 | | |
9 | 9 | | Consider adding a @targetName annotation to one of the conflicting definitions |
10 | 10 | | for disambiguation. |
11 | 11 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:21:5 ---------------------------------------------------------- |
12 | 12 | 21 | def foo(x: List[A]): Function2[B, B, B] = ??? // error |
13 | 13 | | ^ |
14 | | - | Double definition: |
| 14 | + | Conflicting definitions: |
15 | 15 | | def foo(x: List[A]): A => A in class Test3 at line 20 and |
16 | 16 | | def foo(x: List[A]): (B, B) => B in class Test3 at line 21 |
17 | 17 | | have matching parameter types. |
18 | 18 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:26:5 ---------------------------------------------------------- |
19 | 19 | 26 | def foo = 2 // error |
20 | 20 | | ^ |
21 | | - | Double definition: |
| 21 | + | Conflicting definitions: |
22 | 22 | | val foo: Int in class Test4 at line 25 and |
23 | 23 | | def foo: Int in class Test4 at line 26 |
24 | 24 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:31:5 ---------------------------------------------------------- |
25 | 25 | 31 | val foo = 1 // error |
26 | 26 | | ^ |
27 | | - | Double definition: |
| 27 | + | Conflicting definitions: |
28 | 28 | | def foo: Int in class Test4b at line 30 and |
29 | 29 | | val foo: Int in class Test4b at line 31 |
30 | 30 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:36:5 ---------------------------------------------------------- |
31 | 31 | 36 | var foo = 1 // error |
32 | 32 | | ^ |
33 | | - | Double definition: |
| 33 | + | Conflicting definitions: |
34 | 34 | | def foo: Int in class Test4c at line 35 and |
35 | 35 | | var foo: Int in class Test4c at line 36 |
36 | 36 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:41:5 ---------------------------------------------------------- |
37 | 37 | 41 | def foo = 2 // error |
38 | 38 | | ^ |
39 | | - | Double definition: |
| 39 | + | Conflicting definitions: |
40 | 40 | | var foo: Int in class Test4d at line 40 and |
41 | 41 | | def foo: Int in class Test4d at line 41 |
42 | 42 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:55:5 ---------------------------------------------------------- |
43 | 43 | 55 | def foo(x: List[B]): Function1[B, B] = ??? // error: same jvm signature |
44 | 44 | | ^ |
45 | | - | Double definition: |
| 45 | + | Conflicting definitions: |
46 | 46 | | def foo(x: List[A]): A => A in trait Test6 at line 54 and |
47 | 47 | | def foo(x: List[B]): B => B in trait Test6 at line 55 |
48 | | - | have the same type after erasure. |
| 48 | + | have the same type (x: List): Function1 after erasure. |
49 | 49 | | |
50 | 50 | | Consider adding a @targetName annotation to one of the conflicting definitions |
51 | 51 | | for disambiguation. |
52 | 52 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:62:5 ---------------------------------------------------------- |
53 | 53 | 62 | def foo(x: List[A]): Function2[B, B, B] = ??? // error |
54 | 54 | | ^ |
55 | | - | Double definition: |
| 55 | + | Conflicting definitions: |
56 | 56 | | def foo(x: List[A]): A => A in trait Test7 at line 61 and |
57 | 57 | | def foo(x: List[A]): (B, B) => B in trait Test7 at line 62 |
58 | 58 | | have matching parameter types. |
59 | 59 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:67:5 ---------------------------------------------------------- |
60 | 60 | 67 | def foo = 2 // error |
61 | 61 | | ^ |
62 | | - | Double definition: |
| 62 | + | Conflicting definitions: |
63 | 63 | | val foo: Int in class Test8 at line 66 and |
64 | 64 | | def foo: Int in class Test8 at line 67 |
65 | 65 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:72:5 ---------------------------------------------------------- |
66 | 66 | 72 | val foo = 1 // error |
67 | 67 | | ^ |
68 | | - | Double definition: |
| 68 | + | Conflicting definitions: |
69 | 69 | | def foo: Int in class Test8b at line 71 and |
70 | 70 | | val foo: Int in class Test8b at line 72 |
71 | 71 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:77:5 ---------------------------------------------------------- |
72 | 72 | 77 | var foo = 1 // error |
73 | 73 | | ^ |
74 | | - | Double definition: |
| 74 | + | Conflicting definitions: |
75 | 75 | | def foo: Int in class Test8c at line 76 and |
76 | 76 | | var foo: Int in class Test8c at line 77 |
77 | 77 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:82:5 ---------------------------------------------------------- |
78 | 78 | 82 | def foo = 2 // error |
79 | 79 | | ^ |
80 | | - | Double definition: |
| 80 | + | Conflicting definitions: |
81 | 81 | | var foo: Int in class Test8d at line 81 and |
82 | 82 | | def foo: Int in class Test8d at line 82 |
83 | 83 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:88:5 ---------------------------------------------------------- |
84 | 84 | 88 | def foo: String // error |
85 | 85 | | ^ |
86 | | - | Double definition: |
| 86 | + | Conflicting definitions: |
87 | 87 | | val foo: Int in class Test9 at line 87 and |
88 | 88 | | def foo: String in class Test9 at line 88 |
89 | 89 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:92:5 ---------------------------------------------------------- |
90 | 90 | 92 | def foo: Int // error |
91 | 91 | | ^ |
92 | | - | Double definition: |
| 92 | + | Conflicting definitions: |
93 | 93 | | val foo: Int in class Test10 at line 91 and |
94 | 94 | | def foo: Int in class Test10 at line 92 |
95 | 95 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:96:5 ---------------------------------------------------------- |
96 | 96 | 96 | def foo: String // error |
97 | 97 | | ^ |
98 | | - | Double definition: |
| 98 | + | Conflicting definitions: |
99 | 99 | | val foo: Int in class Test11 at line 95 and |
100 | 100 | | def foo: String in class Test11 at line 96 |
101 | 101 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:100:5 --------------------------------------------------------- |
102 | 102 | 100 | def foo: Int // error |
103 | 103 | | ^ |
104 | | - | Double definition: |
| 104 | + | Conflicting definitions: |
105 | 105 | | val foo: Int in class Test12 at line 99 and |
106 | 106 | | def foo: Int in class Test12 at line 100 |
107 | 107 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:104:5 --------------------------------------------------------- |
108 | 108 | 104 | def foo: String // error |
109 | 109 | | ^ |
110 | | - | Double definition: |
| 110 | + | Conflicting definitions: |
111 | 111 | | var foo: Int in class Test13 at line 103 and |
112 | 112 | | def foo: String in class Test13 at line 104 |
113 | 113 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:108:5 --------------------------------------------------------- |
114 | 114 | 108 | def foo: Int // error |
115 | 115 | | ^ |
116 | | - | Double definition: |
| 116 | + | Conflicting definitions: |
117 | 117 | | var foo: Int in class Test14 at line 107 and |
118 | 118 | | def foo: Int in class Test14 at line 108 |
119 | 119 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:112:5 --------------------------------------------------------- |
120 | 120 | 112 | def foo: String // error |
121 | 121 | | ^ |
122 | | - | Double definition: |
| 122 | + | Conflicting definitions: |
123 | 123 | | var foo: Int in class Test15 at line 111 and |
124 | 124 | | def foo: String in class Test15 at line 112 |
125 | 125 | -- [E120] Naming Error: tests/neg/doubleDefinition.scala:116:5 --------------------------------------------------------- |
126 | 126 | 116 | def foo: Int // error |
127 | 127 | | ^ |
128 | | - | Double definition: |
| 128 | + | Conflicting definitions: |
129 | 129 | | var foo: Int in class Test16 at line 115 and |
130 | 130 | | def foo: Int in class Test16 at line 116 |
0 commit comments