mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fmt: add a space after + operator/method overload (#7453)
This commit is contained in:
11
vlib/v/fmt/tests/operator_overload_keep.v
Normal file
11
vlib/v/fmt/tests/operator_overload_keep.v
Normal file
@ -0,0 +1,11 @@
|
||||
struct Foo {
|
||||
x int
|
||||
}
|
||||
|
||||
fn (a Foo) + (b Foo) Foo {
|
||||
return Foo{a.x + b.x}
|
||||
}
|
||||
|
||||
fn (a Foo) % (b Foo) Foo {
|
||||
return Foo{a.x % b.x}
|
||||
}
|
Reference in New Issue
Block a user