tgenericmismatchsegfault_legacy.nim 357 B

1234567891011
  1. template v[T](c: SomeOrdinal): T = T(c)
  2. discard v[int, char]('A') #[tt.Error
  3. ^ type mismatch: got <char>
  4. but expected one of:
  5. template v[T](c: SomeOrdinal): T
  6. first type mismatch at position: 2 in generic parameters
  7. required type for SomeOrdinal: SomeOrdinal
  8. but expression 'char' is of type: char
  9. expression: v[int, char]('A')]#