summary refs log tree commit diff stats
path: root/tests/misc/tquicksort.nim
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2015-10-30 00:27:33 +0100
committerAdam Strzelecki <ono@java.pl>2015-10-30 12:05:02 +0100
commitf838c1baa48a22ef74f431d9b691af179d1c632d (patch)
treef23afb9efab9f4bf1b1d126fe591512c1e9549ed /tests/misc/tquicksort.nim
parent8e4b5e10ba2945f880a857872862bcb28f625594 (diff)
downloadNim-f838c1baa48a22ef74f431d9b691af179d1c632d.tar.gz
fixes #3498
Previously it was not possible to use template arguments in template body as
the symbols were not resolved correctly leading to Error: undeclared
identifier: 'XX', eg.:

   template defaultOf[T](t: T): expr = (var d: T; d)
   echo defaultOf(1) #<- invalid identifier, but should output 0
Diffstat (limited to 'tests/misc/tquicksort.nim')
0 files changed, 0 insertions, 0 deletions