Skip to content

Multiple specs are allowed per function, but Gradient says they can't. #74

@eksperimental

Description

@eksperimental

I have the following specs

  @spec child_pid(arg) :: arg when arg: pid
  @spec child_pid(name) :: pid

And I get this error:

lib/checker.ex: The spec child_pid/1 on line 126 follows another spec, but only one spec per function clause is allowed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions