File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ mod multiple_paths {
2424#[ allow( unused, reason = "testing codegen, not functionality" ) ]
2525mod inline_and_path {
2626 wit_bindgen:: generate!( {
27- // Deliberately not `test:paths` like `multiple_paths` above: two
28- // different worlds under one name collide on the native world marker.
27+ // A different package from `multiple_paths` above. Two different
28+ // worlds under one name corrupt each other's `component-type` sections
29+ // on wasm, and collide on the world marker symbol natively. So this
30+ // technically is a fix to the existing tests
2931 inline: r#"
3032 package test:inline-and-path-root;
3133
@@ -242,7 +244,7 @@ mod owning_method_chaining {
242244mod borrowing_method_chaining {
243245 wit_bindgen:: generate!( {
244246 inline: r#"
245- package test:method-chaining;
247+ package test:borrowing- method-chaining;
246248 world test {
247249 resource a {
248250 constructor();
@@ -253,9 +255,7 @@ mod borrowing_method_chaining {
253255 }
254256 "# ,
255257 generate_all,
256- chainable_methods: [ "&all" ] ,
257- // `owning_method_chaining` above binds the same world; keep the markers apart.
258- type_section_suffix: "-borrowing" ,
258+ chainable_methods: [ "&all" ]
259259 } ) ;
260260}
261261
You can’t perform that action at this time.
0 commit comments