We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71e398f + dbcbc47 commit b5b5a46Copy full SHA for b5b5a46
src/pycropml/transpiler/generators/csharpGenerator.py
@@ -278,9 +278,11 @@ def visit_assignment(self, node):
278
else:
279
if node.target.type=="index" and node.target.sequence.pseudo_type[0]=="list":
280
self.visit(node.target.sequence)
281
- self.write(".Add(")
+ self.write("[")
282
+ self.visit(node.target.index)
283
+ self.write("]=")
284
self.visit(node.value)
- self.write(");")
285
+ self.write(";")
286
287
elif node.value.type == "standard_call" and node.value.function=="integr":
288
self.write("%s = new List<%s>(%s);"%(node.target.name,self.types[node.target.pseudo_type[1]], node.value.args[0].name))
0 commit comments