Tests for unapplied builtins

This commit is contained in:
Ulf Norell
2019-09-04 10:45:43 +02:00
parent b9d141e035
commit d8adfce465
4 changed files with 77 additions and 1 deletions
+4
View File
@@ -66,6 +66,10 @@ format({unapplied_contract_call, Contract}) ->
"~s\n", [pp_expr(2, Contract)]),
Cxt = "Use FATE if you need this.\n",
mk_err(pos(Contract), Msg, Cxt);
format({unapplied_builtin, Id}) ->
Msg = io_lib:format("The AEVM does not support unapplied use of ~s.\n", [pp_expr(0, Id)]),
Cxt = "Use FATE if you need this.\n",
mk_err(pos(Id), Msg, Cxt);
format({invalid_map_key_type, Why, Ann, Type}) ->
Msg = io_lib:format("Invalid map key type\n~s\n", [pp_type(2, Type)]),
Cxt = case Why of