Replies: 2 comments 1 reply
-
This seems related:
I am not allowed to omit
I think this should be enforced as “operator== should return a boolean” rather than “operator== should be followed by |
Beta Was this translation helpful? Give feedback.
-
If you just omit the The error for
This is ok, but |
Beta Was this translation helpful? Give feedback.
-
If I omit the
-> _
from theoperator+
, I get the error:Why is this?
Two additional questions:
: Int = x + val
is the correct CPP2 equivalent ofInt(x + val)
from CPP1?Beta Was this translation helpful? Give feedback.
All reactions