summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-03-28 14:19:32 +0300
committerZahary Karadjov <zahary@gmail.com>2017-03-28 14:19:32 +0300
commit01207b6cfda148c513d5b3fe7db024d1b5881a95 (patch)
tree6bae25a048f6c2f9c840b17ea5ac57e4c60cb9f8 /lib
parent01bc5f32d665ea1c72590609391769cef60d6e83 (diff)
downloadNim-01207b6cfda148c513d5b3fe7db024d1b5881a95.tar.gz
restore the T1-T9 types and clarify how generic concepts work
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 94e10d7df..0e777b707 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -98,6 +98,17 @@ type
   SomeNumber* = SomeInteger|SomeReal
     ## type class matching all number types
 
+  T1* = auto
+  T2* = auto
+  T3* = auto
+  T4* = auto
+  T5* = auto
+  T6* = auto
+  T7* = auto
+  T8* = auto
+  T9* = auto
+    ## Helper types for writing implicitly generic procs
+
 proc defined*(x: untyped): bool {.magic: "Defined", noSideEffect, compileTime.}
   ## Special compile-time procedure that checks whether `x` is
   ## defined.