Type check Bytes.to_X builtins

This commit is contained in:
Ulf Norell
2019-06-24 11:44:07 +02:00
parent 2e0c44862c
commit 6612c29758
5 changed files with 75 additions and 17 deletions
+1
View File
@@ -233,6 +233,7 @@ type({app_t, _, Type, Args}) ->
beside(type(Type), tuple_type(Args));
type({tuple_t, _, Args}) ->
tuple_type(Args);
type({bytes_t, _, any}) -> text("bytes(_)");
type({bytes_t, _, Len}) ->
text(lists:concat(["bytes(", Len, ")"]));
type({named_arg_t, _, Name, Type, _Default}) ->