Add (broken) import all test
This commit is contained in:
parent
854740a63f
commit
f9633ebe55
@ -258,3 +258,12 @@ milta()(10)
|
|||||||
"#;
|
"#;
|
||||||
test_in_fresh_env!(source, "43");
|
test_in_fresh_env!(source, "43");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn import_all() {
|
||||||
|
let source = r#"
|
||||||
|
type Option<T> = Some(T) | None
|
||||||
|
import Option::*
|
||||||
|
let x = Some(9); if x is Some(q) then { q } else { 0 }"#;
|
||||||
|
test_in_fresh_env!(source, "9");
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user