James Clark
James Clark
If anybody has comments on how this issue should be decided, please add them here.
Note the example in #352: this undermines the compiler's checking for not ignoring error returns.
Do this as a linter thing in a Swan Lake update.
Is there any reason warnings should not be given in your bulleted cases? If you're looping and you don't want to use the loop variable, you can do `foreach var...
I think it would be good for the spec to say that it is planned to make this an error in the future.
> One option is that we don't generate this warning when a range expression is used in a `foreach` statement. I think this is a good solution. From the user's...
@MaryamZi Yes.
We should make this a warning in 2022R1 spec.
Also see #453. @hasithaa notes that we may have a similar problem when using a @typeParam with arguments of function type, since function arguments are contravariant.
New functionality needed is #457.