mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
* clean up some test categories * mention exact slice issue * magics into system * move trangechecks into overflow * move tmemory to system * try fix CI * try fix CI * final CI fix
19 lines
409 B
Nim
19 lines
409 B
Nim
discard """
|
|
joinable: false
|
|
"""
|
|
|
|
{.warningAsError[ProveInit]:on.}
|
|
template main() =
|
|
proc fn(): var int =
|
|
discard
|
|
discard fn()
|
|
doAssert not compiles(main())
|
|
|
|
# bug #9901
|
|
import std/[sequtils, times]
|
|
proc parseMyDates(line: string): DateTime =
|
|
result = parse(line, "yyyy-MM-dd")
|
|
var dateStrings = @["2018-12-01", "2018-12-02", "2018-12-03"]
|
|
var parsed = dateStrings.map(parseMyDates)
|
|
discard parsed
|