You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default parameters on enumcases does not seem to work properly.
Minimized code
enumParser[+Value]:caseSuccess(value: Value, issues: Seq[Failure] =Seq.empty) extendsParser[Value]
caseFailure(exception: Throwable) extendsParser[Nothing]
Parser.Success(1)
^
method $lessinit$greater$default$2 in objectSuccess does not take typeparameters
SethTisue
changed the title
enum with default for fields/parameters
In enum with type parameter, can't call constructor for enum case with default argument
Dec 4, 2024
Default parameters on
enum
case
s does not seem to work properly.Minimized code
https://scastie.scala-lang.org/xZ81zFUkSECDcf2vpVgG1g
Workaround
https://scastie.scala-lang.org/avT9leMZRJmC0VMP14UeoA
The text was updated successfully, but these errors were encountered: