Created
December 23, 2015 07:36
-
-
Save tvon/85840caa3c8a77271d4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Example do | |
def test(data \\ [], options \\ []) | |
def test(data, options \\ []) when is_list(data) do | |
IO.puts "is list" | |
end | |
def test(data, options \\ []) when is_bitstring(data) do | |
IO.puts "is bitsring" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resolution:
Remove defaults from lines 5 and 9.