Better errors when using old tuple type syntax

This commit is contained in:
Ulf Norell
2019-08-27 15:08:56 +02:00
parent 3ff93c5c89
commit 3b2daf8cd6
3 changed files with 17 additions and 10 deletions
+2
View File
@@ -243,6 +243,8 @@ type({app_t, _, Type, Args}) ->
beside(type(Type), args_type(Args));
type({tuple_t, _, Args}) ->
tuple_type(Args);
type({args_t, _, Args}) ->
args_type(Args);
type({bytes_t, _, any}) -> text("bytes(_)");
type({bytes_t, _, Len}) ->
text(lists:concat(["bytes(", Len, ")"]));