Superbelko / ohmygentool

LLVM/Clang based bindings generator for D language
The Unlicense
39 stars 6 forks source link

Incorrect array initializer conversion #4

Closed Superbelko closed 4 years ago

Superbelko commented 4 years ago

Example code

static const int dirs[5] = { 3, 0, -1, 2, 1 };

output:

__gshared static const int[5] dirs = 30-1;

expected:

__gshared static const int[5] dirs = [3, 0, -1, 2, 1];

It lacks array initializer braces, delimiter is missing, and even elements are missing.