[erlang-questions] type record() undefined

Kostis Sagonas kostis@REDACTED
Thu Jun 30 13:45:02 CEST 2016


On 06/30/16 14:43, Roger Lipscombe wrote:
> I have the following:
>
> -spec parse_json(JSON :: undefined | binary(), Record :: record(),
> Parser :: function()) -> record().
>
> With Erlang 18.3, I get "type record() undefined". With Erlang 17.x, I don't.
>
> Was this always wrong, and the compiler's got stricter?

Yes.

Kostis



More information about the erlang-questions mailing list