Acknowledged

enum with no integer and no error

enum
{
    __1 = "test",
    __2,
    __3 = 0
}

println in console:

test
0
0

but according to doc https://developer.garmin.com/connect-iq/monkey-c/functions/

Note that assigning anything other than an integer will cause an error.

Parents
  • Even with the highest level, it doesn't emit warnings of any kind.

    Oh I thought if you actually tried to use the values in a type-safe way, there'd be some kind of type error. But it was a while ago when I tried it out and tbh I don't even care that much about this problem. My bad tho.

Comment
  • Even with the highest level, it doesn't emit warnings of any kind.

    Oh I thought if you actually tried to use the values in a type-safe way, there'd be some kind of type error. But it was a while ago when I tried it out and tbh I don't even care that much about this problem. My bad tho.

Children
No Data