Describe the bug
here is the example code :
module main
fn main() {
}
pub interface IOperateInfo {
mut:
//
title string
//
msg string
//
id string
}
Expected Behavior
format the code
Current Behavior
main.v:9:1: error: unexpected comment ``, expecting name
7 | pub interface IOperateInfo {
8 | mut:
9 | //
| ~~
10 | title string
11 | //
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
Describe the bug
here is the example code :
Expected Behavior
format the code
Current Behavior
main.v:9:1: error: unexpected comment ``, expecting name
7 | pub interface IOperateInfo {
8 | mut:
9 | //
| ~~
10 | title string
11 | //
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