Skip to content

The pattern %{...} on line ... doesn't have the type any() #61

@erszcz

Description

@erszcz

Originally posted by @simonprev in #37 (comment):

I have many reports like:

The pattern %{context: %{current_user: current_user}} on line 57 doesn't have the type any()

It seems that when we use pattern matching on a function without a @spec (like every private functions), the default any() raises an error for our "typed" map in the pattern.

I thought that the pattern match would "define" a typing like in TypeScript:

image

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