You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v fmt reports duplicate method error when the same method is defined in mutually exclusive $if/$else or $if flag ?/$if !flag ? blocks. The code compiles and runs correctly, but cannot be formatted.
Describe the bug
v fmt reports
duplicate methoderror when the same method is defined in mutually exclusive$if/$elseor$if flag ?/$if !flag ?blocks. The code compiles and runs correctly, but cannot be formatted.Reproduction Steps
Steps to reproduce:
Expected Behavior
v fmt should recognize mutually exclusive $if blocks and not report duplicate methods
Current Behavior
Possible Solution
No response
Additional Information/Context
Impact: Cannot format files which use this pattern for conditional compilation.
V version
V 0.5.0 e3616f2
Environment details (OS name and version, etc.)
V full version: V 0.5.0 9a73766.e3616f2
OS: Linux
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.