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
It should be possible to use undecidable generics types in function definitions.
e.g.
sealedtraitWeirdGADT[+A]
caseclassIntValue(value: Int) extendsWeirdGADT[Int]
caseclassSomeValue[+A](value: A) extendsWeirdGADT[A]
caseclassSomeOtherValue[+A, +B](value: A, value2: B) extendsWeirdGADT[A]
// This fails on unknown type paramsdefprintsWeirdGADT(g: WeirdGADT[String]):String= g matchcaseSomeValue(value) =>s"SomeValue($value)"caseSomeOtherValue(value, value2) =>s"SomeOtherValue($value, $value2)"
This fails, because SomeOtherValue cannot be fully constructed based on parent's type params.
Either some default will have to be used or a new type of form element introduced - one that lets the user pick any supported type.
It should also be possible to use generic functions with GUInep.
It should be possible to use undecidable generics types in function definitions.
e.g.
This fails, because
SomeOtherValue
cannot be fully constructed based on parent's type params.Either some default will have to be used or a new type of form element introduced - one that lets the user pick any supported type.
It should also be possible to use generic functions with GUInep.
e.g.
This might require similar mechanisms. Plus the support for this kind of input.
The text was updated successfully, but these errors were encountered: