ELENA-LANG / elena-lang

ELENA is a general-purpose language with late binding. It is multi-paradigm, combining features of functional and object-oriented programming. Rich set of tools are provided to deal with message dispatching : multi-methods, message qualifying, generic message handlers, run-time interfaces
https://elena-lang.github.io/
MIT License
236 stars 26 forks source link

dispatch operator should work with expression as well #526

Closed arakov closed 3 years ago

arakov commented 3 years ago

Describe the bug => dispatch operator should work with expression as well: ...() => s.toInt() - toInt is ignored

To Reproduce

A
{
    val() = 3;

    int cast()
        => self.val();
}

public program()
{
    var a := new A();

    int n := a;
}
arakov commented 3 years ago

done