wit-bindgen
wit-bindgen copied to clipboard
c#: Items named `Encoding` clashing with `System.Text.Encoding`
Wit items named "Encoding" clash with System.Text.Encoding used in the binding code.
E.g.
resource foo {
encoding: func();
}
Can the binding code refer to Encoding with the full path System.Text.Encoding?
That sounds reasonable to me. Since the binding generation tool is wit-bindgen. I am going to transfer this issue there
We could probably use the fully qualified name for all system library calls to avoid this issue for other types of functions
Also use on the class or methods
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("wit-bindgen", "0.41.0")]
This was fixed by #1275.