mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
parent
3ffe5abff2
commit
d4ad981448
3 changed files with 36 additions and 1 deletions
|
@ -7401,5 +7401,24 @@ mod solve_expr {
|
|||
x : Str
|
||||
"###
|
||||
);
|
||||
|
||||
#[test]
|
||||
fn issue_3560_nested_tag_union() {
|
||||
infer_queries!(
|
||||
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
|
||||
"#
|
||||
),
|
||||
&[r#"Wrapper (Payload "err") : [Wrapper [AlternatePayload Str, Payload Str]]"#,]
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue