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 removes selective imports of an interface when a given interface is used only in implements clause.
The compiler will not complain after formatting, but I'm puzzled how compiler knows where the symbol 'Visitor' comes from as it does not contain qualifier nor such symbol exists in local scope. Might be that this is not checked.
Describe the bug
V fmt removes selective imports of an interface when a given interface is used only in implements clause.
The compiler will not complain after formatting, but I'm puzzled how compiler knows where the symbol 'Visitor' comes from as it does not contain qualifier nor such symbol exists in local scope. Might be that this is not checked.
Reproduction Steps
Given:
Run
v fmt
on itExpected Behavior
Selective import not removed.
Current Behavior
First line will be transformed to
import v.ast.walker
.Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.7 79bedff
Environment details (OS name and version, etc.)
V full version: V 0.4.7 a7db095.79bedff
OS: linux, Linux Mint 21.3
Processor: 20 cpus, 64bit, little endian, 12th Gen Intel(R) Core(TM) i9-12900H
getwd: /home/jakub/repos/V-ConsoleTest
vexe: /home/jakub/programy/v/v
vexe mtime: 2024-09-11 21:12:09
vroot: OK, value: /home/jakub/programy/v
VMODULES: OK, value: /home/jakub/.vmodules
VTMP: OK, value: /tmp/v_1000
Git version: git version 2.34.1
Git vroot status: weekly.2024.36-42-g79bedff1
.git/config present: true
CC version: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
thirdparty/tcc status: thirdparty-linux-amd64 a0799a5
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.
The text was updated successfully, but these errors were encountered: