diff --git a/schala-lang/language/src/eval/test.rs b/schala-lang/language/src/eval/test.rs index 5d18933..9a8306b 100644 --- a/schala-lang/language/src/eval/test.rs +++ b/schala-lang/language/src/eval/test.rs @@ -258,3 +258,12 @@ milta()(10) "#; test_in_fresh_env!(source, "43"); } + +#[test] +fn import_all() { + let source = r#" +type Option = Some(T) | None +import Option::* +let x = Some(9); if x is Some(q) then { q } else { 0 }"#; + test_in_fresh_env!(source, "9"); +}