summaryrefslogtreecommitdiff
path: root/src/types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.hpp')
-rw-r--r--src/types.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/types.hpp b/src/types.hpp
index dad4493b..adc28f6f 100644
--- a/src/types.hpp
+++ b/src/types.hpp
@@ -43,6 +43,7 @@ class TypeRef:
{
/// Class
enum Class {
+ NONE,
ANY, //< '_' - Wildcard
//BOUNDED, //< '_: Traits' - Bounded type (a resolved type parameter usually)
UNIT, //< '()' - Unit / void
@@ -68,6 +69,12 @@ public:
TypeRef():
m_class(ANY)
{}
+
+ struct TagInvalid {};
+ TypeRef(TagInvalid):
+ m_class(NONE)
+ {}
+
struct TagBoundedAny {};
TypeRef(TagBoundedAny, ::std::vector<TypeRef> traits):
m_class(ANY),