IDE - Dependent Failure to Compile

Delta_G:
You need to write your own function declaration. The Arduino stuff is trying to generate it for you but it's putting it up before the enum definition.

Isn't that a proper function declaration I have right below the enum definition?

enum myEnum {
  SYM0, SYM1, SYM2, SYM3, SYM4
};
myEnum returnEnum(myEnum);

I thought if I provided that prototype it would stop the Arduino stuff from doing so. Seems to work in the Arduino IDE.