Skip to content

with expression support and clause reachability #85

Open
@eksperimental

Description

@eksperimental

This is a reduced case of The clause on line X cannot be reached, when calling with/1

defmodule Unreacheable do
  @spec foo(term) :: pos_integer()
  def foo(bar) do
    with _value <- bar do
      1
    else
      _ ->
        2
    end
  end
end

will generate:

lib/debug_gradient/unreacheable.ex: The clause on line 4 cannot be reached

Metadata

Metadata

Assignees

No one assigned

    Labels

    elixir-syntaxSpecific to Elixir syntax with no direct Erlang equivalenttriageNeeds assessment whether a bug, enhancement, duplicate, ...

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions