`static: echo "compiling..." proc display[T](message: T) = when not (T is 
string): {.fatal: "T is not a string".} echo message # works 
display[string]("hello") # fatal error, compilation aborted # display[int](5) `

Run

Reply via email to