You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot import statics with the same name from different snippets.
Steps to Reproduce
mod a
{usesuper::*;#[wasm_bindgen(inline_js = r#"export const X = 1;"#)]extern{pubstaticX:JsValue;}}mod b
{usesuper::*;#[wasm_bindgen(inline_js = r#"export const X = 2;"#)]extern{pubstaticX:JsValue;}}#[wasm_bindgen(inline_js = r#"export function f(a, b) { console.log(a, b); }"#)]extern{fnf(a:&JsValue,b:&JsValue);}#[wasm_bindgen(start)]pubfng(){f(&a::X,&b::X)}
Expected Behavior
Output is [1, 2].
Actual Behavior
Output is [1, 1].
Additional Context
Using wasm-bindgen 0.2.92.
The text was updated successfully, but these errors were encountered:
Describe the Bug
Cannot import statics with the same name from different snippets.
Steps to Reproduce
Expected Behavior
Output is
[1, 2]
.Actual Behavior
Output is
[1, 1]
.Additional Context
Using wasm-bindgen 0.2.92.
The text was updated successfully, but these errors were encountered: