Skip to content

Commit

Permalink
Allow any default parameter in two-fer
Browse files Browse the repository at this point in the history
Fixes #431
  • Loading branch information
skeltoac authored Jul 19, 2024
1 parent f3e6767 commit 360c3f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/elixir_analyzer/test_suite/two_fer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ defmodule ElixirAnalyzer.TestSuite.TwoFer do

# function header
form do
def two_fer(_ignore \\ "you")
def two_fer(_ignore \\ _ignore)
end

# function without a guard and with a do block
form do
def two_fer(_ignore \\ "you") do
def two_fer(_ignore \\ _ignore) do
_ignore
end
end

# function with do block
form do
def two_fer(_ignore \\ "you") when _ignore do
def two_fer(_ignore \\ _ignore) when _ignore do
_ignore
end
end
Expand Down

0 comments on commit 360c3f7

Please sign in to comment.