add import lists

This commit is contained in:
JT
2021-09-27 13:23:22 +13:00
parent abb0d7bd22
commit 0108a935ed
4 changed files with 60 additions and 1 deletions

View File

@ -374,3 +374,11 @@ fn module_imports_4() -> TestResult {
"not find import",
)
}
#[test]
fn module_imports_5() -> TestResult {
run_test(
r#"module foo { def a [] { 1 }; def b [] { 2 }; def c [] { 3 } }; use foo.[a, c]; c"#,
"3",
)
}