summary refs log blame commit diff stats
path: root/tests/stmt/tmiscunderscore.nim
blob: c4bae1c3d8ec771bf5da989316a72811ea16c023 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                            
import std/assertions

block:
  proc _() = echo "one"
  doAssert not compiles(_())
  proc _() = echo "two"
  doAssert not compiles(_())

block:
  type _ = int
  doAssert not (compiles do:
    let x: _ = 3)
  type _ = float
  doAssert not (compiles do:
    let x: _ = 3)