Part of #3560
This commit is contained in:
Ayaz Hafiz 2022-07-18 09:18:29 -04:00
parent c48c4f3183
commit 52e15bd344
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 37 additions and 1 deletions

View file

@ -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
"#
)
}