-
Notifications
You must be signed in to change notification settings - Fork 14
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
Show error for list in list #69
Comments
This looks like a dup of #36. |
Can you clarify this, please?
My understanding is that the situation to catch is a list constructor list a;
list b = [a]; |
That too, yes. |
Catching that and user-defined functions that return lists would require keeping track of variable and function types, though. It's a bit easier to catch if there's an explicit cast to list or a built-in function that returns a list. |
The good news is that lslint already does that :) I have a patch ready. I'll submit it soon. |
lslint should report an error for:
Suggestion:
SL behavior:
Tested with
v1.0.8
.The text was updated successfully, but these errors were encountered: