File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -612,8 +612,26 @@ imported into the component as well.
612
612
Note that the name ` "local:demo/shared" ` here is derived from the name of the
613
613
` interface ` plus the package ID ` local:demo ` .
614
614
615
- For ` export ` ed interfaces any transitively ` use ` d interface is assumed to be an
616
- import unless it's explicitly listed as an export.
615
+ For ` export ` ed interfaces, any transitively ` use ` d interface is assumed to be an
616
+ import unless it's explicitly listed as an export. For example, here ` w1 ` is
617
+ equivalent to ` w2 ` :
618
+ ``` wit
619
+ interface a {
620
+ resource r;
621
+ }
622
+ interface b {
623
+ use a.{r};
624
+ foo: func() -> r;
625
+ }
626
+
627
+ world w1 {
628
+ export b;
629
+ }
630
+ world w2 {
631
+ import a;
632
+ export b;
633
+ }
634
+ ```
617
635
618
636
> ** Note** : It's planned in the future to have "power user syntax" to configure
619
637
> this on a more fine-grained basis for exports, for example being able to
You can’t perform that action at this time.
0 commit comments