Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive when pattern matching functions parameters with sigils #63

Closed
danhper opened this issue Apr 15, 2016 · 1 comment
Closed
Assignees

Comments

@danhper
Copy link

danhper commented Apr 15, 2016

The following code gives an incorrect warning:

defmodule Foobarbaz do
  def foo(~w(a b c)) do
    IO.puts("a b c")
  end
  def foo(_) do
    IO.puts("not a b c")
  end
end

warning:

┃ [W] ↗ Parameter `sigil_w` has same name as the `Kernel.sigil_w` macro.
┃       lib/foobarbaz.ex:2 (Foobarbaz.foo)

Thank you for your help!

@rrrene
Copy link
Owner

rrrene commented Apr 15, 2016

Interesting. Thx for reporting! 👍

@rrrene rrrene self-assigned this Apr 15, 2016
@rrrene rrrene closed this as completed in ba35807 Apr 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants