We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141a72f commit b955c4fCopy full SHA for b955c4f
src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -2351,10 +2351,9 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
2351
StarWithDefaultError(meth)
2352
2353
if (!isPastTyper) {
2354
- val allParams = meth.paramss.flatten
2355
- for (p <- allParams) {
+ mforeach(meth.paramss) { p =>
2356
for (n <- p.deprecatedParamName) {
2357
- if (allParams.exists(p1 => p != p1 && (p1.name == n || p1.deprecatedParamName.exists(_ == n))))
+ if (mexists(meth.paramss)(p1 => p != p1 && (p1.name == n || p1.deprecatedParamName.exists(_ == n))))
2358
DeprecatedParamNameError(p, n)
2359
}
2360
0 commit comments