qore icon indicating copy to clipboard operation
qore copied to clipboard

namespace resolution ambiguity

Open pavelkveton opened this issue 9 years ago • 2 comments

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.

pavelkveton avatar Oct 19 '15 16:10 pavelkveton

we need to add a warning in these cases

davidnich avatar Dec 09 '15 09:12 davidnich

See also #188

tethal avatar Feb 04 '16 08:02 tethal