summary refs log tree commit diff stats
path: root/tests/pragmas/t13306.nim
blob: 36713dd049e09bdc0e09f1eaf64ea20e8220ef5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
discard """
  errormsg: "'testEpo' can have side effects"
  line: 8
"""

import times

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

echo testEpo(1.0)