Compiler does not compile a function with a default argument initialized using an expression with the same name field #9413
Labels
fixed in Scala 3
This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/)
minimized
named/default args
typer
Milestone
The following trivial example produces a compiler error:
The error is
The error seems to suggest the compiler is trying to initialize
b
argument with itself, not with theb
field, when theb
field should be the only possible valid interpretation in this context, asb
argument is not visible in the parameter list itself.The text was updated successfully, but these errors were encountered: