type record() undefined

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

type record() undefined

Roger Lipscombe-2
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?
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: type record() undefined

Kostis Sagonas-2
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
_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions