summary refs log tree commit diff stats
path: root/tests/stdlib/genericstrformat.nim
blob: 0446f3269b6117d89e5913b023f5b2446f717a45 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# from issue #7632
# imported and used in tstrformat

import strformat

proc fails*(a: static[int]): string =
  &"formatted {a:2}"

proc fails2*[N: static[int]](a: int): string =
  &"formatted {a:2}"

proc works*(a: int): string =
  &"formatted {a:2}"

proc fails0*(a: int or uint): string =
  &"formatted {a:2}"