diff options
author | John Hodge <tpg@mutabah.net> | 2016-03-12 10:34:29 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-03-12 10:34:29 +0800 |
commit | 314edf07074ca2b211463ccf6b0e79ef051ffaa2 (patch) | |
tree | b0236674d408e384dceba0c1b16e6266d2333cca /src/types.cpp | |
parent | 19d4cd58c3ba07dd4bce84dc7c94eafb20b6a2ff (diff) | |
download | mrust-314edf07074ca2b211463ccf6b0e79ef051ffaa2.tar.gz |
Parse - Fix against newer compiler tests
Diffstat (limited to 'src/types.cpp')
-rw-r--r-- | src/types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.cpp b/src/types.cpp index b056bf94..d8e655e6 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -103,7 +103,7 @@ TypeRef::TypeRef(const TypeRef& other) #define _CLONE(VAR, code...) case TypeData::TAG_##VAR: { auto& old = other.m_data.as_##VAR(); m_data = TypeData::make_##VAR(code); } break; _COPY(None) _COPY(Any) - case TypeData::TAG_Macro: throw ::std::runtime_error("Copying an unexpanded type macro"); + case TypeData::TAG_Macro: assert( !"Copying an unexpanded type macro" ); _COPY(Unit) _COPY(Primitive) _COPY(Function) |