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

declaring a lambda function with template based argument #689

Closed arakov closed 1 month ago

arakov commented 2 months ago

Describe the bug Currently it is only possible to declare a lambda function with a template based argument if using var attribute

To Reproduce

import extensions;

test(Action<object> arg)
{
   arg("2");
}

public program()
{
   test((::Action<object> x){ console.printLine("arg ", x, " is passed") });
}

Expected behavior The code above must be compiled without an error

arakov commented 1 month ago

fixed in ELENA 6.4.4