GitNexus/gitnexus/test/fixtures/lang-resolution/cpp-overloaded-operators/lib.h
azizur100389 952ada70c5
feat(cpp): Resolve overloaded operator calls (#1754)
* feat(cpp): resolve overloaded operator calls

* fix(cpp): tighten overloaded operator resolution

---------

Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
2026-05-22 13:31:06 +01:00

23 lines
381 B
C++

#pragma once
namespace std {
class ostream {};
extern ostream cout;
}
struct Point {
Point operator+(Point rhs) const {
return rhs;
}
Point& operator+=(Point rhs) {
return *this;
}
};
std::ostream& operator<<(std::ostream& os, const Point& p);
void runMember(Point a, Point b);
void runFree(Point p);
void runBuiltin();
void runBuiltinVariables(int a, int b);