canalpay: > void main() > { > T input(T)() > {} > > T input(T : string)() > {} > } In D2 you can't define templates inside functions. Bye, bearophile