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 d4f836e commit d86e4f2Copy full SHA for d86e4f2
compiler/src/dotty/tools/dotc/semanticdb/TypeOps.scala
@@ -97,6 +97,8 @@ class TypeOps:
97
// and register them to the symbol table with `(<y>, inner) -> <y>`
98
// instead of `("y", outer) -> <y>`
99
// We must also check for parameter shadowing such as def shadowParam(x: Int) = {val x = true}
100
+ // We skip param symbol check if owner is not a LambdaType for proper MatchType paramRef entry in the paramRefSymtab
101
+ // for more information: https://github.com/scala/scala3/pull/23161#discussion_r2097755983
102
103
if (sym.is(Flags.Param) || !sym.owner.info.isInstanceOf[LambdaType]) && lam.paramNames.contains(sym.name) then
104
paramRefSymtab((lam, sym.name)) = sym
0 commit comments