beluga icon indicating copy to clipboard operation
beluga copied to clipboard

recognize type definitions whenever possible

Open mycoboco opened this issue 6 years ago • 0 comments

typedef float foo

foo main() {}
t.c:1:18: ERROR - syntax error; expected `;' before `identifier'
  typedef float foo
                   ^
t.c:3:1: ERROR - unknown type `foo'
  foo main() {}
  ^~~
t.c:3:1: ERROR - redeclaration of `foo'
  foo main() {}
  ^~~

mycoboco avatar Dec 15 '18 08:12 mycoboco