From dea436b41c8a53390f2c45fb9609d7f41aeb52e4 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Mon, 29 Apr 2019 23:18:05 +0200 Subject: Found why Dialyzer inferred type(), not either(). --- src/shared/struct/inventory/shr_equipment.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/shared/struct/inventory/shr_equipment.erl b/src/shared/struct/inventory/shr_equipment.erl index a931444..b56a83c 100644 --- a/src/shared/struct/inventory/shr_equipment.erl +++ b/src/shared/struct/inventory/shr_equipment.erl @@ -177,7 +177,7 @@ get_portrait_id (#shr_eq{ portrait = R }) -> shr_portrait:get_id(R). get_glyph_board_id (#shr_eq_ref{ glyph_board = R }) -> R; get_glyph_board_id (#shr_eq{ glyph_board = R }) -> shr_glyph_board:get_id(R). --spec get_glyph_ids (type()) -> list(shr_glyph:id()). +-spec get_glyph_ids (either()) -> list(shr_glyph:id()). get_glyph_ids (#shr_eq_ref{ glyphs = R }) -> R; get_glyph_ids (#shr_eq{ glyphs = R }) -> lists:map(fun shr_glyph:get_id/1, R). -- cgit v1.2.3-70-g09d2