no :: in func decls
This commit is contained in:
@@ -3,6 +3,6 @@ Animal :: enum {
|
||||
cat
|
||||
}
|
||||
|
||||
favorite :: func() Animal {
|
||||
favorite func() Animal {
|
||||
return .cat
|
||||
}
|
||||
|
||||
@@ -8,15 +8,15 @@ State :: enum(u16) {
|
||||
|
||||
initial State :: State.started
|
||||
|
||||
same :: func(left State, right State) bool {
|
||||
same func(left State, right State) bool {
|
||||
return left == right
|
||||
}
|
||||
|
||||
identity :: c_func(value State) State {
|
||||
identity c_func(value State) State {
|
||||
return value
|
||||
}
|
||||
|
||||
main :: func() i32 {
|
||||
main func() i32 {
|
||||
state State = identity(.running)
|
||||
values [2]State :: [.started, State.stopped]
|
||||
animal animals.Animal :: animals.Animal.dog
|
||||
|
||||
Reference in New Issue
Block a user