Skip to content

etylizer: pass_tycheck:foo/1 categorization #5

@albsch

Description

@albsch

Is listed as pass, but should fail, because X could be atom()?

All checkers agree that this should fail.

-spec foo(atom() | list()) -> integer().
foo(X) ->
    [ _ | _ ] = X,
    length(X). % X has type list() here

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions