diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-08 11:11:02 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-08 11:11:02 +0800 |
commit | d91e9415d3a3cd4c9cc5bfcee548d6b3b98867f5 (patch) | |
tree | 247b1820605575ae44239ce02a486d2124e7e815 /src/include | |
parent | 368c42ce7e5355341d547e5af6b71808dfd01acb (diff) | |
download | mrust-d91e9415d3a3cd4c9cc5bfcee548d6b3b98867f5.tar.gz |
HIR Typecheck - Type parameters in method/function execution
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/tagged_union.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/tagged_union.hpp b/src/include/tagged_union.hpp index e0a30dd0..fcf924c8 100644 --- a/src/include/tagged_union.hpp +++ b/src/include/tagged_union.hpp @@ -99,11 +99,11 @@ // "match"-like statement // TU_MATCH(Class, m_data, ent, (Variant, CODE), (Variant2, CODE)) #define TU_MATCH(CLASS, VAR, NAME, ...) switch( (TU_FIRST VAR).tag()) {/* -*/ case CLASS::TAGDEAD: throw "ERROR: destructed tagged union used";/* +*/ case CLASS::TAGDEAD: assert(!"ERROR: destructed tagged union used");/* */ TU_MATCH_ARMS(CLASS, VAR, NAME, __VA_ARGS__)/* */} #define TU_MATCH_DEF(CLASS, VAR, NAME, DEF, ...) switch( (TU_FIRST VAR).tag()) {/* -*/ case CLASS::TAGDEAD: throw "ERROR: destructed tagged union used";/* +*/ case CLASS::TAGDEAD: assert(!"ERROR: destructed tagged union used");/* */ TU_MATCH_ARMS(CLASS, VAR, NAME, __VA_ARGS__)/* */ default: {TU_EXP DEF;} break;/* */} |