tv3_generics.nim 336 B

12345678910111213141516171819
  1. type
  2. Hello[T] = object
  3. value: T
  4. proc printHelloValue[T](hello: Hello[T]) =
  5. echo hello.value
  6. proc main() =
  7. let a = Hello[float]()
  8. p#[!]#rintHelloValue(a)
  9. main()
  10. discard """
  11. $nimsuggest --v3 --tester $file
  12. >def $1
  13. def;;skProc;;tv3_generics.printHelloValue;;proc (hello: Hello[printHelloValue.T]);;$file;;5;;5;;"";;100
  14. """