mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
parent
c48c4f3183
commit
52e15bd344
3 changed files with 37 additions and 1 deletions
|
@ -1884,3 +1884,19 @@ fn encode_derived_tag_two_payloads_string() {
|
|||
"#
|
||||
)
|
||||
}
|
||||
|
||||
#[mono_test]
|
||||
fn issue_3560_nested_tag_union() {
|
||||
indoc!(
|
||||
r#"
|
||||
app "test"
|
||||
imports [Encode.{ toEncoder }, Json]
|
||||
provides [main] to "./platform"
|
||||
|
||||
main =
|
||||
when Wrapper (Payload "err") is
|
||||
Wrapper (Payload str) -> str
|
||||
Wrapper (AlternatePayload str) -> str
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue