mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Remove subsumed test
This commit is contained in:
parent
e15278024a
commit
cb42d9b076
1 changed files with 0 additions and 24 deletions
|
@ -6029,30 +6029,6 @@ All branches in an `if` must have the same type!
|
|||
"###
|
||||
);
|
||||
|
||||
test_report!(
|
||||
underscore_let,
|
||||
indoc!(
|
||||
r#"
|
||||
_ = 3
|
||||
|
||||
4
|
||||
"#
|
||||
),
|
||||
@r###"
|
||||
── UNNECESSARY DEFINITION ──────────────────────────────── /code/proj/Main.roc ─
|
||||
|
||||
This destructure assignment doesn't introduce any new variables:
|
||||
|
||||
4│ _ = 3
|
||||
^
|
||||
|
||||
If you don't need to use the value on the right-hand-side of this
|
||||
assignment, consider removing the assignment. Since Roc is purely
|
||||
functional, assignments that don't introduce variables cannot affect a
|
||||
program's behavior!
|
||||
"###
|
||||
);
|
||||
|
||||
test_report!(
|
||||
expect_expr_type_error,
|
||||
indoc!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue