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
Transformer
fromFoo
toBar
works. But the definition fromFoo
toBaz
does not becauseBaz
is not a sealed trait.I understand that because
Baz
is not sealed at compile time we can't findC
, so there is not way to getTransformer.define[Foo, Baz].buildTransformer
to work. But it should be possible to makeTransformer.define[Foo, Baz].withSealedSubtypeRenamed[A.type, C.type].buildTransformer
to work, right?Beta Was this translation helpful? Give feedback.
All reactions