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