When using enums with `...` accessing it without verify should probably throw an error

Issue #221 resolved
squeaky
created an issue

Having an enum like

typedef enum
{
  G_IO_IN = ...,
  G_IO_OUT,
  G_IO_PRI,
  G_IO_ERR,
  G_IO_HUP,
  G_IO_NVAL
} GIOCondition;

I should probably get error that says to use verify when accessing lib.G_IO_IN, at the moment instead I get default C behaviour assigning 0 to G_IO_IN. I think this is fine when no ... are present but in this case it seems weird to me that it allows that with explicit ...

Comments (1)

  1. Log in to comment