mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-11 05:34:11 +03:00
Reproduce alias import bug
This commit is contained in:
parent
8e37b650cd
commit
54a5349306
7
tests/fixtures/build/interface_with_deps/ImportAlias.roc
vendored
Normal file
7
tests/fixtures/build/interface_with_deps/ImportAlias.roc
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
interface ImportAlias
|
||||
exposes [ unit ]
|
||||
imports [ Dep1 ]
|
||||
|
||||
unit : Dep1.Unit
|
||||
unit = Unit
|
||||
|
@ -153,6 +153,22 @@ mod test_load {
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn import_alias() {
|
||||
test_async(async {
|
||||
let subs_by_module = MutMap::default();
|
||||
let loaded_module =
|
||||
load_fixture("interface_with_deps", "ImportAlias", subs_by_module).await;
|
||||
|
||||
expect_types(
|
||||
loaded_module,
|
||||
hashmap! {
|
||||
"unit" => "Dep1.Unit",
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn load_and_typecheck() {
|
||||
test_async(async {
|
||||
|
Loading…
Reference in New Issue
Block a user