mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Add test to reproduce Ok and Err alias failure
This commit is contained in:
parent
87feeb5135
commit
e4bc7147c9
1 changed files with 16 additions and 0 deletions
|
@ -1200,6 +1200,22 @@ fn tag_with_type_behind_alias() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn aliases_named_err_and_ok() {
|
||||
expect_success(
|
||||
indoc!(
|
||||
r#"
|
||||
Err : [Blah]
|
||||
Ok : [Stuff]
|
||||
|
||||
v : (Err, Ok)
|
||||
v = (Blah, Stuff)
|
||||
v"#
|
||||
),
|
||||
r#"(Blah, Stuff) : ( [Blah], [Stuff] )*"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "wasm"))]
|
||||
#[test]
|
||||
fn issue_2588_record_with_function_and_nonfunction() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue