Skip to content

Norm onboarding requires uneasy co-existence with Dialyzer #53

@garthk

Description

@garthk

You want to add some Norm for that with_gen/2 goodness, but Dialyzer got there first. The first argument of with_gen/2 isn't opaque, t:StreamData.t/0 is, and your console is all red:

The call Norm.with_gen(#{'__struct__':='Elixir.Norm.Core.Spec', 'f':=fun((_) -> boolean()), 'generator':='is_atom', 'predicate':=<<_:72>>},'Elixir.StreamData':t(_)) contains an opaque term in 2nd argument when terms of different types are expected in these positions}.

If it wouldn't make @keathley break out in a rash, maybe an @opaque of our own and a sprinkling of @spec would make it easier?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions