mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 22:33:49 +00:00
* Add sideEffect pragma to procs in winlean * Add sideEffect pragma to procs in posix * Add test for #13306 * Add sideEffect pragma to procs in times * Fixes #13306
11 lines
154 B
Nim
11 lines
154 B
Nim
discard """
|
|
errormsg: "'testEpo' can have side effects"
|
|
line: 8
|
|
"""
|
|
|
|
import times
|
|
|
|
func testEpo(x: float): float = epochTime() + x
|
|
|
|
echo testEpo(1.0)
|