uqbar-project / wollok

Wollok Programming Language
GNU General Public License v3.0
60 stars 16 forks source link

Cannot self call method from Mixin #1019

Closed nrainhart closed 7 years ago

nrainhart commented 8 years ago

Example:

mixin M1{
    method uno(){
        return 1
    } 
}

class C1 mixed with M1{
    method dos() = 1 + self.uno() 
}

It marks method dos() = 1 + self.uno() with "Non existant method or incorrect argument number"

And when you try to run it, it says the same in the console

javierfernandes commented 8 years ago

Right. I was able to reproduce it even in "dev" (1.6).

I suspect that it is only an bug on the static checks which validates that methods on self exists. It is probably not taking into account inherited methods from mixins. Which is weird since now all checks should use the "linearized" hierarchy.

Will work on it soon.

javierfernandes commented 8 years ago

This is already fixed in "dev". Meaning that it will be part of wollok 1.6

We could consider also fixing it in 1.5.x if it is really necessary