summaryrefslogtreecommitdiff
path: root/src/resolve/absolute.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-19 22:08:24 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-19 22:08:24 +0800
commitc805e9e03db7e7b48f04824ccf5e625a20032af9 (patch)
treebf27192754ffa315a522391abe91378801e47ca5 /src/resolve/absolute.cpp
parent0ad915eb4919e8bdb036015f221b57c7f3de912c (diff)
downloadmrust-c805e9e03db7e7b48f04824ccf5e625a20032af9.tar.gz
AST - Support ! as a real type
Diffstat (limited to 'src/resolve/absolute.cpp')
-rw-r--r--src/resolve/absolute.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp
index 0a0cf478..89a16d47 100644
--- a/src/resolve/absolute.cpp
+++ b/src/resolve/absolute.cpp
@@ -878,13 +878,16 @@ void Resolve_Absolute_Type(Context& context, TypeRef& type)
const auto& sp = type.span();
TU_MATCH(TypeData, (type.m_data), (e),
(None,
- // ! type
+ // invalid type
),
(Any,
// _ type
),
(Unit,
),
+ (Bang,
+ // ! type
+ ),
(Macro,
BUG(sp, "Resolve_Absolute_Type - Encountered an unexpanded macro");
),