Hello,
Generating nodejs module with AOT for a class with several indexers raises the error:
CSC : error NAPI1001: AmbiguousMatchException : Ambiguous match found for 'Class2 .Item this[] [Int32]'. at System.RuntimeType.GetPropertyImpl(String name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers) at System.Type.GetProperty(String name, BindingFlags bindingAttr) at Microsoft.JavaScript.NodeApi.Generator.SymbolExtensions.AsPropertyInfo(IPropertySymbol propertySymbol) at Microsoft.JavaScript.NodeApi.Generator.ModuleGenerator.ExportProperty(SourceBuilder& s, IPropertySymbol property, String exportName) at Microsoft.JavaScript.NodeApi.Generator.ModuleGenerator.ExportMembers(SourceBuilder& s, ITypeSymbol type) at Microsoft.JavaScript.NodeApi.Generator.ModuleGenerator.ExportType(SourceBuilder& s, ITypeSymbol type, String exportName) at Microsoft.JavaScript.NodeApi.Generator.ModuleGenerator.ExportModule(SourceBuilder& s, ITypeSymbol moduleType, IEnumerable`1 exportItems) at Microsoft.JavaScript.NodeApi.Generator.ModuleGenerator.GenerateModuleInitializer(ISymbol moduleInitializer, IEnumerable`1 exportItems) at Microsoft.JavaScript.NodeApi.Generator.ModuleGenerator.Execute(GeneratorExecutionContext context) [ConsoleApp1.csproj]
Code to reproduce:
[JSExport]
public class Class2
{
public Item this[int index]
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
public Item this[string index]
{
get => throw new NotImplementedException();
set => throw new NotImplementedException();
}
}
[JSExport]
public class Item
{
}
Hello, Generating nodejs module with AOT for a class with several indexers raises the error:
Code to reproduce:
Version: 0.7.2 Command:
Linked with #270