mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 00:09:33 +03:00
Add unnecessary import test cases
This commit is contained in:
parent
5f117be306
commit
5dc51ce444
@ -10717,4 +10717,32 @@ All branches in an `if` must have the same type!
|
||||
opaque type to have a different name!
|
||||
"###
|
||||
);
|
||||
|
||||
test_report!(
|
||||
unnecessary_builtin_module_import,
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" imports [Str] provides [main] to "./platform"
|
||||
|
||||
main = Str.concat "" ""
|
||||
"#
|
||||
),
|
||||
@r###"
|
||||
"###
|
||||
);
|
||||
|
||||
test_report!(
|
||||
unnecessary_builtin_type_import,
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" imports [Decode.{ DecodeError }] provides [main, E] to "./platform"
|
||||
|
||||
E : DecodeError
|
||||
|
||||
main = ""
|
||||
"#
|
||||
),
|
||||
@r###"
|
||||
"###
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user