You’re trying to use a function as an infix operator, that doesn’t work. If you call it normally, it will work as expected.
The reason e.g. a + b
can be used as an infix is because that is special cased at lowering and actually transforms into +(a,b)
. See also the docs, Operators Are Functions.