bytecodealliance / bytecodealliance/wit-bindgen
C# Gen variant contains tag method (Build fails because of two members named "Tag")
- Dominant language
- Rust
- Stars
- 1.5k
- Forks
- 286
- Avg merge
- 6h 32m
- Merged PRs (30d)
- 19
Description
This wit file contains a variant which has a method called tag. The generated class has also a variable called "Tag" the compiler throws an error because two members have the same name. Because the Tag variable isn't part of the wit file and just a variable from the generator this needs to be fixed.
Expected behavior would be that the generator calls his own variable in ways that it doesn't effect the defined method/variable from the WIT definition.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the C# generator code that emits the variant's generated Tag member, then reproduce the WIT case where a variant also defines a tag method. Verify that the generated class compiles and preserves the WIT-defined member without a name collision.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100