1234567891011121314151617181920212223 |
- discard """
- cmd: '''nim c --newruntime $file'''
- output: '''@[1]
- @[116, 101, 115, 116]
- @[1953719668, 875770417]'''
- """
- # bug #11018
- discard cast[seq[uint8]](@[1])
- discard cast[seq[uint8]]("test")
- echo cast[seq[uint8]](@[1])
- echo cast[seq[uint8]]("test")
- discard cast[string](@[116'u8, 101, 115, 116])
- #echo cast[string](@[116'u8, 101, 115, 116, 0])
- var a = cast[seq[uint32]]("test1234")
- a.setLen(2)
- echo a
- #issue 11204
- var ac {.compileTime.} = @["a", "b"]
- const bc = ac.len
|