--warn-missing-constructor-parentheses doesn't warn when missing constructor arguments #5409
Labels
kind: bug
Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
part: resolver
Resolution and typechecking
priority: next
Will consider working on this after in progress work is done
Dafny version
4.6.0 (but pretty sure it's always been like this)
Code to produce this issue
Command to run and resulting output
What happened?
--warn-missing-constructor-parentheses
is intended to warn against typos when trying to reference a data constructor in a match case, which results in binding the value to a new symbol instead. The code above is an instance of this mistake, where there is no warning thatBar
is actually a new symbol instead of a reference toBar
, and also no verifier warning thatQuaz
is not handled. IfBar(a: int)
is changed to justBar
the warning does occur.What type of operating system are you experiencing the problem on?
Mac
The text was updated successfully, but these errors were encountered: