Hello,
Generating nodejs module with AOT for a class with indexer raises the error:
CSC : error NAPI1001: InvalidOperationException : Sequence contains more than one element at System.Linq.ThrowHelper.ThrowMoreThanOneElementException() at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Boolean& found) at Microsoft.JavaScript.NodeApi.Generator.ExpressionExtensions.ToCS(Expression expression, String path, HashSet`1 variables) at Microsoft.JavaScript.NodeApi.Generator.ExpressionExtensions.FormatStatement(Expression expression, Boolean isReturn, String path, HashSet`1& variables) at Microsoft.JavaScript.NodeApi.Generator.ExpressionExtensions.FormatBlock(BlockExpression block, String path, HashSet`1 variables) at Microsoft.JavaScript.NodeApi.Generator.ExpressionExtensions.ToCS(Expression expression, String path, HashSet`1 variables) at Microsoft.JavaScript.NodeApi.Generator.ExpressionExtensions.ToCS(Expression expression, String path, HashSet`1 variables) at Microsoft.JavaScript.NodeApi.Generator.ModuleGenerator.GenerateCallbackAdapters(SourceBuilder& s) 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();
}
}
[JSExport]
public class Item
{
}
Hello, Generating nodejs module with AOT for a class with indexer raises the error:
Code to reproduce:
Version: 0.7.2 Command: