-
Notifications
You must be signed in to change notification settings - Fork 256
Closed
Labels
gen-c#Related to the C# code generatorRelated to the C# code generator
Description
Componentize generates invalid code in cases where a resource and it's method share the same name.
E.G.
resource foo {
foo: func();
}Results in the following error:
Restore complete (0.5s)
dotnet_counter failed with 1 error(s) (2.1s)
[path]/obj/Release/net9.0/wasi-wasm/wit_bindgen/BrowserWorld.wit.imports.webidl.browser.IGlobal.cs(205513,30): error CS0542: 'Foo': member names cannot be the same as their enclosing type
Build failed with 1 error(s) in 2.9s
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
gen-c#Related to the C# code generatorRelated to the C# code generator