diff options
author | John Hodge <tpg@mutabah.net> | 2016-06-26 21:55:29 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-06-26 21:55:29 +0800 |
commit | e1d92ce17d029b1dbeffe0510b6462c2994fdcb0 (patch) | |
tree | 4cc4c548d21d03a17d7d27fcc3b184f570eabd84 /src/parse/types.cpp | |
parent | cbb8a2b167ac50476c067f92c91184f12f67f7c1 (diff) | |
download | mrust-e1d92ce17d029b1dbeffe0510b6462c2994fdcb0.tar.gz |
HIR Typecheck - Fn type handling
Diffstat (limited to 'src/parse/types.cpp')
-rw-r--r-- | src/parse/types.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parse/types.cpp b/src/parse/types.cpp index 2dda3cab..6f3a3d58 100644 --- a/src/parse/types.cpp +++ b/src/parse/types.cpp @@ -212,6 +212,8 @@ TypeRef Parse_Type_Fn(TokenStream& lex, ::std::vector<::std::string> hrls) { if( GET_TOK(tok, lex) == TOK_STRING ) { abi = tok.str(); + if( abi == "" ) + ERROR(lex.getPosition(), E0000, "Empty ABI"); GET_TOK(tok, lex); } else { |