47 lines
611 B
V
47 lines
611 B
V
enum Abc {
|
|
a
|
|
b // after a value
|
|
c
|
|
// between values
|
|
d
|
|
}
|
|
|
|
struct User {
|
|
name string // name
|
|
// middle comment
|
|
age int
|
|
// last comment
|
|
// last comment2
|
|
}
|
|
|
|
fn main() {
|
|
u := User{
|
|
name: 'Peter'
|
|
}
|
|
if true {
|
|
}
|
|
// some comment after an if without else
|
|
n := sizeof(User)
|
|
// else
|
|
// else {
|
|
// }
|
|
_ := User{
|
|
name: 'Henry' // comment after name
|
|
// on the next line
|
|
age: 42
|
|
// after age line
|
|
// after line2
|
|
}
|
|
_ := User{
|
|
// Just a comment
|
|
}
|
|
a := 123 // comment after assign
|
|
b := 'foo' // also comment after assign
|
|
c := true
|
|
// Between two assigns
|
|
d := false
|
|
//////
|
|
// /
|
|
// 123
|
|
}
|