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













                                                                      
discard """
  action: run
"""
block:
  proc something(a: string or int or float) =
    const (c, d) = (default a.type, default a.type)

block:
  proc something(a: string or int) =
    const c = default a.type

block:
  proc something(a: string or int) =
    const (c, d, e) = (default a.type, default a.type, default a.type)