Fixed array generation expression, removed compat types as they are being remapped
This commit is contained in:
@@ -171,8 +171,8 @@ namespace CodeGenerator {
|
||||
}
|
||||
|
||||
public static CodeExpression GenerateArrayInitExpression(CodeTypeReference type, IEnumerable<int> dimensions) {
|
||||
string dims = string.Concat(dimensions.Select(d => $"[{d}]"));
|
||||
return new CodeSnippetExpression($"new {type.BaseType}{dims}");
|
||||
string dims = string.Concat(dimensions.Select(d => $"{d},"));
|
||||
return new CodeSnippetExpression($"new {type.BaseType}[{dims}]");
|
||||
}
|
||||
|
||||
private static CodeTypeConstructor GenerateStaticConstructor(CodeTypeDeclaration ctd) {
|
||||
|
||||
Reference in New Issue
Block a user