vlang/c2v

Optional else block should not produce error message

kbkpbot opened this issue · 1 comments

test2.c

int test(int a) {
        if (a > 1)
                return 0;
        return 1;
}

c2v produce extra error message "No more children" :

C to V translator 0.3.1
  translating /home/ddfd/v/test2.c ... No more children
Reformatted file: /home/ddfd/v/test2.v
 took    20 ms ; output .v file: /home/ddfd/v/test2.v
Translated   1 files in    20 ms.

I think that was used as debug message while the initial development. Should be investigated and improved