Remove subsumed test

This commit is contained in:
Ayaz Hafiz 2022-07-22 16:22:46 -04:00
parent e15278024a
commit cb42d9b076
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -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!( test_report!(
expect_expr_type_error, expect_expr_type_error,
indoc!( indoc!(