Files
Nim/tests/tuples/tinferred_generic_const.nim
2021-07-27 09:36:59 +02:00

15 lines
325 B
Nim

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)