Fix hang on qualified import with builtin name

This commit is contained in:
Agus Zubiaga 2024-07-03 12:40:53 -03:00
parent f69d39dffc
commit 13ba59a4cb
No known key found for this signature in database
3 changed files with 33 additions and 2 deletions

View file

@ -11782,6 +11782,30 @@ In roc, functions are always written as a lambda, like{}
"###
);
test_report!(
import_qualified_builtin,
indoc!(
r#"
app [main] { pf: platform "../../tests/platform.roc" }
import pf.Bool
main =
""
"#
),
@r###"
 FILE NOT FOUND in tmp/import_qualified_builtin/../../tests/Bool.roc 
I am looking for this file, but it's not there:
tmp/import_qualified_builtin/../../tests/Bool.roc
Is the file supposed to be there? Maybe there is a typo in the file
name?
"###
);
test_report!(
invalid_toplevel_cycle,
indoc!(