summaryrefslogtreecommitdiff
path: root/src/hir
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-29 16:23:29 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-29 16:23:29 +0800
commitd97f3089b257754741326bda377103d2c99f263e (patch)
tree4c23946577af4786f427c8da365bbd019885454d /src/hir
parentf6b5e16db50450be409330e6dddfb218c8b5afb7 (diff)
downloadmrust-d97f3089b257754741326bda377103d2c99f263e.tar.gz
HIR Typecheck - Start on expression type checking/inferrence
Diffstat (limited to 'src/hir')
-rw-r--r--src/hir/type.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hir/type.hpp b/src/hir/type.hpp
index d3aac4c6..5cfbbf10 100644
--- a/src/hir/type.hpp
+++ b/src/hir/type.hpp
@@ -59,7 +59,9 @@ struct TypeRef
// - Pointer
TAGGED_UNION(Data, Infer,
- (Infer, struct {}),
+ (Infer, struct {
+ unsigned int index = 0;
+ }),
(Diverge, struct {}),
(Primitive, ::HIR::CoreType),
(Path, ::HIR::Path),