mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
11 lines
156 B
Nim
11 lines
156 B
Nim
import std/assertions
|
|
|
|
let a = 0
|
|
let b = if false: -1 else: a
|
|
doAssert b == 0
|
|
|
|
let c: range[0..high(int)] = 0
|
|
let d = if false: -1 else: c
|
|
|
|
doAssert d == 0
|