Cannot parse named inline type used as key for a map type
KronicDeth opened this issue · 1 comments
KronicDeth commented
-type tuple_elements() :: #{ Key :: pos_integer() => type() }.
error: unrecognized token
┌─ /Users/runner/work/lumen/otp/lib/compiler/src/beam_types.hrl:127:34
│
127 │ -type tuple_elements() :: #{ Key :: pos_integer() => type() }.
│ ^^ expected: ")", "*", "+", ",", "-", ".", "..", ":=", ";", "=>", ">>", "]", "band", "bor", "bsl", "bsr", "bxor", "div", "rem", "when", "|", "}"
error: parsing failed
Failed /Users/runner/work/lumen/otp/lib/compiler/src/beam_call_types.erl
KronicDeth commented
Confirmed. No expected
pointing at ::
remain in the OTP build log.