mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-11 05:34:11 +03:00
Add test for unit alias working in defs
This commit is contained in:
parent
54a5349306
commit
8fdc77167a
@ -1940,6 +1940,23 @@ mod test_infer {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unit_alias() {
|
||||
infer_eq(
|
||||
indoc!(
|
||||
r#"
|
||||
Unit : [ Unit ]
|
||||
|
||||
unit : Unit
|
||||
unit = Unit
|
||||
|
||||
unit
|
||||
"#
|
||||
),
|
||||
"Unit",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rigid_in_letnonrec() {
|
||||
infer_eq_without_problem(
|
||||
|
Loading…
Reference in New Issue
Block a user