genericstrformat.nim 313 B

1234567891011121314151617
  1. # from issue #7632
  2. # imported and used in tstrformat
  3. import strformat
  4. proc fails*(a: static[int]): string =
  5. &"formatted {a:2}"
  6. proc fails2*[N: static[int]](a: int): string =
  7. &"formatted {a:2}"
  8. proc works*(a: int): string =
  9. &"formatted {a:2}"
  10. proc fails0*(a: int or uint): string =
  11. &"formatted {a:2}"