no :: in func decls
This commit is contained in:
@@ -4,21 +4,21 @@ Manual :: c_struct {
|
||||
value c_int
|
||||
}
|
||||
|
||||
mirror_manual :: c_func(value Manual) Manual {
|
||||
mirror_manual c_func(value Manual) Manual {
|
||||
return value
|
||||
}
|
||||
|
||||
mirror_large :: c_func(value native.Large) native.Large {
|
||||
mirror_large c_func(value native.Large) native.Large {
|
||||
return value
|
||||
}
|
||||
|
||||
native_pair :: func(value native.Pair) native.Pair {
|
||||
native_pair func(value native.Pair) native.Pair {
|
||||
return value
|
||||
}
|
||||
|
||||
global_pair native.Pair :: native.Pair { left = 1, right = 2 }
|
||||
|
||||
main :: func() i32 {
|
||||
main func() i32 {
|
||||
pair native.Pair = native_pair(global_pair)
|
||||
pair.left = 10
|
||||
pair = native.echo_pair(pair)
|
||||
|
||||
Reference in New Issue
Block a user