@@ -21,7 +21,7 @@ trait FormDerivation extends AutoDerivation[Form] {
2121 ctx.params
2222 .zip(subStates)
2323 .map { case (param, subState) =>
24- val subForm = (param.typeclass.render _ ).asInstanceOf [(Var [Any ], FormConfig ) => VMod ]
24+ val subForm = (param.typeclass.render).asInstanceOf [(Var [Any ], FormConfig ) => VMod ]
2525 val label = param.annotations.collectFirst { case Label (l) => l }.getOrElse(param.label + " :" )
2626 label -> subForm(subState, config)
2727 }
@@ -36,16 +36,16 @@ trait FormDerivation extends AutoDerivation[Form] {
3636 defaultSubtype.typeclass.default
3737 }
3838 override def render (selectedValue : Var [T ], config : FormConfig ): VMod = {
39- val selectedSubtype : Var [SealedTrait .Subtype [Form , T , _ ]] =
40- selectedValue.imap[SealedTrait .Subtype [Form , T , _ ]](subType => subType.typeclass.default)(value =>
39+ val selectedSubtype : Var [SealedTrait .Subtype [Form , T , ? ]] =
40+ selectedValue.imap[SealedTrait .Subtype [Form , T , ? ]](subType => subType.typeclass.default)(value =>
4141 ctx.choose(value)(_.subtype)
4242 )
4343
4444 def labelForSubtype [Type , SType ](subtype : SealedTrait .Subtype [Form , Type , SType ]): String =
4545 subtype.annotations.collectFirst { case Label (l) => l }.getOrElse(subtype.typeInfo.short)
4646
4747 config.unionSubform(
48- config.selectInput[SealedTrait .Subtype [Form , T , _ ]](
48+ config.selectInput[SealedTrait .Subtype [Form , T , ? ]](
4949 options = ctx.subtypes,
5050 selectedValue = selectedSubtype,
5151 show = labelForSubtype,
0 commit comments