sourcepawn icon indicating copy to clipboard operation
sourcepawn copied to clipboard

Terrible error message when using an enum as a function parameter before the enum is declared.

Open Fyren opened this issue 7 years ago • 1 comments

Something like this:

void foo(MyEnum e) { }
enum MyEnum { }

Will produce an error message like this:

error 181: function argument named 'e' differs from prototype

Fyren avatar May 17 '18 08:05 Fyren

On version 1.13.0.7244 this doesn't produce an error, and instead gives a proper warning warning 203: symbol is never used: "e"

Bradasparky avatar Jun 22 '25 16:06 Bradasparky