Fix incorrect type specs

h/t OTP-21 dialyzer
This commit is contained in:
Ulf Norell
2019-01-28 14:54:34 +01:00
parent 9026e1fe6b
commit 3a7c8f905a
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ expr(E) -> expr_p(0, E).
%% -- Not exported -----------------------------------------------------------
-spec name(aeso_syntax:id() | aeso_syntax:con() | aeso_syntax:tvar()) -> doc().
-spec name(aeso_syntax:id() | aeso_syntax:qid() | aeso_syntax:con() | aeso_syntax:qcon() | aeso_syntax:tvar()) -> doc().
name({id, _, Name}) -> text(Name);
name({con, _, Name}) -> text(Name);
name({qid, _, Names}) -> text(string:join(Names, "."));