Skip to content
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

fmt error 3 #18982

Closed
lydiandy opened this issue Jul 27, 2023 · 0 comments · Fixed by #18992
Closed

fmt error 3 #18982

lydiandy opened this issue Jul 27, 2023 · 0 comments · Fixed by #18992
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@lydiandy
Copy link
Contributor

Describe the bug

here is the example code :

module main

fn main() {
}

pub struct OperateInfo { // implements IperateInfo
pub mut: 
	title string
	msg   string
	id    string
}

Expected Behavior

format the code and the result is the same

Current Behavior

module main

fn main() {
}

pub struct OperateInfo {
pub mut: // implements IperateInfo   <--be moved here
	title string
	msg   string
	id    string
}

Reproduction Steps

v fmt ./main.v -w

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.4.0 b35ad8a

Environment details (OS name and version, etc.)

V full version: V 0.4.0 b06811c.b35ad8a
OS: macos, macOS, 13.4.1, 22F770820d
Processor: 8 cpus, 64bit, little endian, Apple M2

getwd: /Users/tony/v/vtest
vexe: /Users/tony/v/v/v
vexe mtime: 2023-07-26 09:12:23

vroot: OK, value: /Users/tony/v/v
VMODULES: OK, value: /Users/tony/.vmodules
VTMP: OK, value: /tmp/v_501

Git version: git version 2.39.1
Git vroot status: weekly.2023.30-6-gb35ad8a6 (6 commit(s) behind V master)
.git/config present: true

CC version: Apple clang version 14.0.3 (clang-1403.0.22.14.1)
thirdparty/tcc status: thirdparty-macos-arm64 a668e5a0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant