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
--Warning:Ast.scala:24:9-----------------------------------------------------24|caseast: DefDef=> ast
|^^^^^^^^^^^| the typetestfor asts.untpd.DefDef cannot be checked at runtime
1 warning found
Expectation
compile as in 0.24.0-RC1
Notes
if we instead explicitly copy the variance from the parent to the case, then the warning goes away:
enumAst[-T>:Untyped]:// case DefDef()caseDefDef[-T>:Untyped]() extendsAst[T]
The text was updated successfully, but these errors were encountered:
bishabosha
changed the title
Upper bound not copied into enum case class constructors
Upper bound not copied into enum case class type parameters
Jun 29, 2020
bishabosha
changed the title
Upper bound not copied into enum case class type parameters
Upper bound + Variance not copied into enum case class type parameters
Jun 29, 2020
bishabosha
changed the title
Upper bound + Variance not copied into enum case class type parameters
Variance not copied into enum case class type parameters
Jun 29, 2020
Uh oh!
There was an error while loading. Please reload this page.
Minimized code
Output
Expectation
compile as in
0.24.0-RC1
Notes
if we instead explicitly copy the variance from the parent to the case, then the warning goes away:
The text was updated successfully, but these errors were encountered: