uqbar-project / wollok

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

Allow mixins on WKO's #535

Closed javierfernandes closed 8 years ago

javierfernandes commented 8 years ago

This should behave in the same way as mixing it into a class

object Dog mixed with Energy inherits Animal {
    ...
}
javierfernandes commented 8 years ago

This currently works at a syntax level, but the WKO message check fails because it is not including inherited methods from mixins

javierfernandes commented 8 years ago

Also object instantiation is not initializing the mixins state into the object causing

Caused by: org.uqbar.project.wollok.interpreter.context.UnresolvableReference: Unrecognized variable "times" in object "pepita[]"