Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

declaring a lambda function with template based argument #689

Closed
arakov opened this issue Sep 10, 2024 · 1 comment
Closed

declaring a lambda function with template based argument #689

arakov opened this issue Sep 10, 2024 · 1 comment
Labels
Milestone

Comments

@arakov
Copy link
Member

arakov commented Sep 10, 2024

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
Copy link
Member Author

arakov commented Oct 14, 2024

fixed in ELENA 6.4.4

@arakov arakov closed this as completed Oct 14, 2024
arakov added a commit that referenced this issue Oct 19, 2024
* [FIXED]fix opcode mov gs,r/m64
* resolving #696 comments & suggestions
* some API code refactoring
* working on #696 - linux version will look into the app path to try to retrieve data files
* supporting relative paths #696
* removing unused variables
* [FIXED]#696 : probable memory corruption by tree node operations
* [REDUX]!! refactoring grammar to make it more readable
* refactoring the compiler code to support parameterized method call
* [ELENA][ADDED] support parameterized extension method call
* [API][ADDED] extensions'routines'stex : toArray<T>
* fix encoder code (see an example with ConsoleFileWriter)
* [FIXED]variadic argument list of super class is type-casted
* refactoring api
* fixing viardic message extension handler
* [FIXED] #689: declaring a lambda function with template based argument
* #696 : provide set of config files for Linux with relative paths
* [FIXED] fixing issues ABI convention for external calls
* fixing thread code invoker
* [FIXED] preloaded symbols in sub namespaces
* fixing byref handler retrieving routine
* [FIXED] calling indexed method from the sealed class
* [ADDED]new functional test : script_tests
* fixing elt operation
* [ADDED] new option -xs - Strict type enforcing option (raise an error if the sealed class is typecasted / called the method that does not exists)
* #676 : supporting strict type flag in IDE Project Settings dialog
* [ADDED] supporting multi-byte nop operand
---------

Co-authored-by: Alex <alex@Ubuntu.myguest.virtualbox.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant