qore
qore copied to clipboard
namespace resolution ambiguity
with qore 0.8.12, consider the following script:
module mymod {
version = "1";
desc = "muj modul";
author = "Pavel";
}
%new-style
public namespace myspace
{
public int sub myfunc()
{
return 3;
}
}
public namespace myspace2
{
public int sub myfunc()
{
return 4;
}
}
print(myfunc(),"\n");
it peacefully prints 4, without any warning that the resolution is ambiguous.
we need to add a warning in these cases
See also #188