bytecodealliance / bytecodealliance/wit-bindgen
Using an interface for two imports causes an error
Open
- Dominant language
- Rust
- Stars
- 1.5k
- Forks
- 286
- Avg merge
- 6h 32m
- Merged PRs (30d)
- 19
Description
```wit
interface iface {
f: func()
}
default world w {
import p1: self.iface
import p2: self.iface
}
```
This produces the following error:
```
$ wit-bindgen markdown example.wit
Error: interface `p2` imported more than once
--> example.wit:7:9
|
7 | import p2: self.iface
|
```
Is it actually not allowed to have two imports with the same interface? That seems surprising to me.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.