Ambiguous star imports resolved incorrectly
jjcnn opened this issue · comments
jjcnn commented
a.sw
library;
struct MyStruct { ... }
b.sw
library;
struct MyStruct { ... }
main.sw
script;
use a::*;
use b::*; // MyStruct is now ambiguous, which is fine as long as it's not used
fn main() {
let x = MyStruct { ... }; // This should be an error, but resolves to b::MyStruct
}