diff options
author | Zahary Karadjov <zahary@gmail.com> | 2013-12-27 18:34:28 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2013-12-27 18:34:28 +0200 |
commit | a27eb51535f9ff233b67e5bac80cc51b81c343c7 (patch) | |
tree | 02d29f44788e7ddc00ee9bba3381eb86d349ba6a /compiler/ast.nim | |
parent | 4eea2f17d36b2cf239f0a987b5d9715a81b2b70f (diff) | |
download | Nim-a27eb51535f9ff233b67e5bac80cc51b81c343c7.tar.gz |
towards support for composite type classes such as seq[Number] and SquareMatrix[T]
Diffstat (limited to 'compiler/ast.nim')
-rw-r--r-- | compiler/ast.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim index 130f5a5ad..45784bbcb 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -340,6 +340,7 @@ type tyParametricTypeClass # structured similarly to tyGenericInst # lastSon is the body of the type class tyBuiltInTypeClass + tyCompositeTypeClass tyAnd tyOr tyNot @@ -350,7 +351,7 @@ const tyPureObject* = tyTuple GcTypeKinds* = {tyRef, tySequence, tyString} tyError* = tyProxy # as an errornous node should match everything - tyTypeClasses* = {tyTypeClass, tyBuiltInTypeClass, + tyTypeClasses* = {tyTypeClass, tyBuiltInTypeClass, tyCompositeTypeClass, tyParametricTypeClass, tyAnd, tyOr, tyNot, tyAnything} type |