File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,10 @@ object NameOps {
174
174
*/
175
175
def functionArity : Int =
176
176
functionArityFor(str.Function ) max {
177
- val n = functionArityFor(str.ImplicitFunction ) max functionArityFor(str.UnusedFunction ) max functionArityFor(str.UnusedImplicitFunction )
177
+ val n =
178
+ functionArityFor(str.ImplicitFunction ) max
179
+ functionArityFor(str.UnusedFunction ) max
180
+ functionArityFor(str.UnusedImplicitFunction )
178
181
if (n == 0 ) - 1 else n
179
182
}
180
183
@@ -216,9 +219,8 @@ object NameOps {
216
219
*/
217
220
def isSyntheticFunction : Boolean = {
218
221
functionArityFor(str.Function ) > MaxImplementedFunctionArity ||
219
- functionArityFor(str.ImplicitFunction ) >= 1 ||
220
- functionArityFor(str.UnusedFunction ) >= 1 ||
221
- functionArityFor(str.UnusedImplicitFunction ) >= 1
222
+ functionArityFor(str.ImplicitFunction ) >= 1 ||
223
+ isUnusedFunction
222
224
}
223
225
224
226
/** Parsed function arity for function with some specific prefix */
You can’t perform that action at this time.
0 commit comments