Skip to content

illegal pattern #7

@OvermindDL1

Description

@OvermindDL1

Given this reduced test:

IO.inspect({:ok, str} when is_binary(str) = get_a_string_or_whatever())

It gives an 'illegal pattern' error at compile-time of:

 ** (CompileError) web/controllers/index_controller.ex:8: illegal pattern
    (stdlib) lists.erl:1338: :lists.foreach/2
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
    (elixir) lib/kernel/parallel_compiler.ex:116: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions