Support derivation to non-sealed trait #561
Closed
jtjeferreira
started this conversation in
General
Replies: 2 comments 3 replies
-
|
It could, but I would be worried to enable such thing without a lot of tests to make sure it would not have some unpredictable consequences:
|
Beta Was this translation helpful? Give feedback.
3 replies
-
|
As per the comments in #564 (comment) this can be achieved without using chimney in a simpler way. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Thanks for this amazing library.
Consider the following code
The definition of a
TransformerfromFootoBarworks. But the definition fromFootoBazdoes not becauseBazis not a sealed trait.I understand that because
Bazis not sealed at compile time we can't findC, so there is not way to getTransformer.define[Foo, Baz].buildTransformerto work. But it should be possible to makeTransformer.define[Foo, Baz].withSealedSubtypeRenamed[A.type, C.type].buildTransformerto work, right?Beta Was this translation helpful? Give feedback.
All reactions