diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-07 15:20:48 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-07 15:20:48 +0800 |
commit | 2d7d7d8571a788ca43439a5d75df818eaa8dd5d3 (patch) | |
tree | 7eaf71a1a3a970a7e8e6715e2b754184ea3191b4 /src/hir/type.hpp | |
parent | d21eaed77240158885c2e22c436bc17053a9cd1d (diff) | |
download | mrust-2d7d7d8571a788ca43439a5d75df818eaa8dd5d3.tar.gz |
HIR - Add literal annotation to TypeRef::Data::Infer
Diffstat (limited to 'src/hir/type.hpp')
-rw-r--r-- | src/hir/type.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/hir/type.hpp b/src/hir/type.hpp index 573cad70..01254270 100644 --- a/src/hir/type.hpp +++ b/src/hir/type.hpp @@ -15,6 +15,13 @@ class Enum; class TypeRef; +enum class InferClass +{ + None, + Integer, + Float, +}; + enum class CoreType { Usize, Isize, @@ -73,6 +80,7 @@ public: TAGGED_UNION(Data, Infer, (Infer, struct { unsigned int index = ~0u; + InferClass ty_class = InferClass::None; }), (Diverge, struct {}), (Primitive, ::HIR::CoreType), |