Skip to content

Commit

Permalink
Add test for nim-lang#13306
Browse files Browse the repository at this point in the history
  • Loading branch information
demotomohiro committed Feb 7, 2020
1 parent 3eb05de commit c33a0ed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/pragmas/t13306.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
discard """
errormsg: "'testEpo' can have side effects"
line: 8
"""

import times

func testEpo(x: float): float = epochTime() + x

echo testEpo(1.0)

0 comments on commit c33a0ed

Please sign in to comment.