summary refs log tree commit diff stats
path: root/doc/effects.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/effects.txt')
0 files changed, 0 insertions, 0 deletions
tests/stdlib/t8925.nim?h=devel&id=ca394ebd9514edd6e5f5e5c3d3145aa868744647'>^
72a65c43a ^












1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
           
                                                                                        
                      












                              
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