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 postive UnusedArg when argument is used for arguments propagating #42

Open
nothingelsematters opened this issue Oct 13, 2020 · 0 comments

Comments

@nothingelsematters
Copy link

first file:

args@{ firstArgument, ... }:

{
   attribute = import ./file.nix args;
}

./file.nix :

{ firstArgument }:

{
  ...
}

./file.nix uses firstArgument of first file's arguments

I get UnusedArgument for firstArgument here

But removing it results in:
anonymous function at .../file.nix:1: called without required argument 'firstArgument', at first-file:10:10

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

1 participant