Files
Nim/tests/enum
Jake Leahy 8cad6ac048 Don't try and get enum value if its invalid (#22997)
Currently running `nimsuggest`/`check` on this code causes the compiler
to raise an exception

```nim
type
  Test = enum
    A = 9.0 
```

```
assertions.nim(34)       raiseAssert
Error: unhandled exception: int128.nim(69, 11) `arg.sdata(3) == 0` out of range [AssertionDefect]
```

Issue was the compiler still trying to get the ordinal value even if it
wasn't an ordinal
2023-11-28 09:38:10 +01:00
..
2022-04-07 20:57:50 +02:00
2022-04-07 20:57:50 +02:00
2022-04-07 20:57:50 +02:00
2020-11-02 08:56:51 +01:00
2019-02-13 23:30:14 +01:00
2018-08-31 00:30:19 +02:00