vlang / v

Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
MIT License
35.5k stars 2.15k forks source link

V allows duplicated operator method #21674

Closed medvednikov closed 2 weeks ago

medvednikov commented 2 weeks ago

Describe the bug

struct Foo{}
fn (f Foo) * (f2 Foo) Foo{}
fn (f Foo) * (f2 Foo) Foo{}

V version

latest

[!NOTE] You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote. Other reactions and those to comments will not be taken into account.