mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Parse destructured tag annotations as annotations rather than aliases
Closes #178
This commit is contained in:
parent
fe62e59e31
commit
b3ddfa7515
8 changed files with 192 additions and 34 deletions
|
@ -2981,20 +2981,20 @@ mod solve_expr {
|
|||
);
|
||||
}
|
||||
|
||||
// #[test]
|
||||
// fn let_tag_pattern_with_annotation() {
|
||||
// infer_eq_without_problem(
|
||||
// indoc!(
|
||||
// r#"
|
||||
// UserId x : [ UserId I64 ]
|
||||
// UserId x = UserId 42
|
||||
#[test]
|
||||
fn let_tag_pattern_with_annotation() {
|
||||
infer_eq_without_problem(
|
||||
indoc!(
|
||||
r#"
|
||||
UserId x : [ UserId I64 ]
|
||||
UserId x = UserId 42
|
||||
|
||||
// x
|
||||
// "#
|
||||
// ),
|
||||
// "I64",
|
||||
// );
|
||||
// }
|
||||
x
|
||||
"#
|
||||
),
|
||||
"I64",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn typecheck_record_linked_list_map() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue