Open tomas-davidovic opened 3 days ago
I don't know if this is intentional behavior.
As a note for implementation, if this is a bug the solution should be simple. Overload resolution would just need to prefer functions with equal parents (slang-check-overload.cpp
).
In code like this:
The call to
getData()
insidegetValue()
is reported as an ambiguous call. This is incosistent with C/C++, where the compiler will automatically prefer the member functiongetData()
, without needing to explicitly specifythis.getData()
or::getData()
.