[erlang-questions] type declarations

Howard Yeh hayeah@REDACTED
Wed Apr 22 08:36:07 CEST 2009


Hi,

I read the dialyzer on wrangler paper, and it looks really neat.

I am trying to annotate my code with type declarations, but I am
getting syntax errors.

For the simple declaration,

-spec test() -> 'ok'.

I get,

syntax error before: test


Is there a flag i need to throw? I am using R12B

Thanks,
Howard



More information about the erlang-questions mailing list