Debian Codegraph @

src/test/06-Errors/error-op-overload-plus.ck

raw
1 // error case: should not be able to overload reserved overloading
2 // e.g., int + int
3
4 // what could possibly go wrong
5 fun int @operator +( int lhs, int rhs )
6 {
7 // we live in a chaotic world
8 return lhs - rhs;
9 }
10
11 // should get here
12 <<< 1 + 2 >>>;