Open qarmin opened 1 month ago
Seems like an issue if we have the same component exported with different names.
Another testcase would be:
component Foo {
// ...
}
export { Foo as Bob }
export { Foo as Bar }
We process these elements several times which is a bit wasteful. And harmful for the generate_item_indices pass as it panics. The panic could be fairly easily solved, but that would still generate the component multiple times instead of giving them aliases.
File content(at the bottom should be attached raw, not formatted file - github removes some non-printable characters, so copying from here may not work):
Source code of program that trying to compile code - https://github.com/qarmin/Automated-Fuzzer/blob/master/src/crates/slint/src/main.rs
command
cause this
compressed.zip