1234567891011121314151617 |
- discard """
- errormsg: "type mismatch between pattern '$$i' (position: 1) and HourRange var 'hour'"
- file: "strscans.nim"
- """
- import strscans
- type
- HourRange = range[0..23]
- var
- hour: HourRange
- timeStr: string
- if scanf(timeStr, "$i", hour):
- discard
|