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

Resolving methods with variadic signatures in run-time #413

Closed
arakov opened this issue Jun 11, 2018 · 2 comments
Closed

Resolving methods with variadic signatures in run-time #413

arakov opened this issue Jun 11, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@arakov
Copy link
Member

arakov commented Jun 11, 2018

The the following code does not work properly:

class A
{
    string s;
    object  others;
    
    constructor new1(params int[] others)
    {
        this others := others
    }
    
    constructor new2(string s, params int[] others)
    {
        this s := s;
        this others := others;
    }
}

public program()
{
    var aa := A;
    
    aa.new1(1);
    aa.new1(1,2); // raises method-not-found exception
    aa.new1(1,2,3);
    aa.new2("abc",1,2,3);
}

The method should be resolved properly

@arakov arakov added the bug label Jun 11, 2018
@arakov arakov added this to the ELENA 3.4 milestone Jun 13, 2018
arakov added a commit that referenced this issue Sep 19, 2018
@arakov
Copy link
Member Author

arakov commented Sep 19, 2018

done

@arakov arakov closed this as completed Sep 19, 2018
@arakov arakov reopened this Oct 5, 2024
@arakov arakov self-assigned this Oct 5, 2024
@arakov arakov modified the milestones: ELENA 4.0, ELENA 7.x Oct 5, 2024
arakov added a commit that referenced this issue Oct 7, 2024
@arakov
Copy link
Member Author

arakov commented Oct 7, 2024

fixed in ELENA 6.4,3

@arakov arakov closed this as completed Oct 7, 2024
@arakov arakov mentioned this issue Oct 7, 2024
2 tasks
arakov added a commit that referenced this issue Oct 7, 2024
* [ADDED] supporting async methods
* [FIXED][ldoc] system-threading-.html must not be generated
* [API][ADDED] File : saveContent, readContent, readWideContent
* [API][ADDED] system'io'threading : asyncStreamOp extension
* [Samples][ADDED] asyncsamples
* [FIXED] it is not possible to declare internal default constructor
* [IDE][FIXED] project options - debug command arguments
* [Sample][ADDED] task sample 2
* [API][ADDED] extensions'threading : outputConcurrentOp extension
* [API][REDUX] all symbols must start with a capital letter
* [API][ADDED] system'threading : Task<TResult>
* [ADDED]Task<TSResult> example
* JIT : index table generating (fixed order, after the main method table; terminated by 0)
* [ADDED]functional test : indexed multi-method
* [ADDED] supporting indexed methods
* [ADDED] indexed internal methods can be declared in a closed class
* [ADDED] system'threading : Task<TResult>
* [FIXED] system'objectOp.__getClassName[1]
* [FIXED][ldoc] system-threading : generate only templates declared in the module
* [FIXED] #675 - Using ++ operator with a weak type
* [FIXED] incorrect typecast handler signature for the classes inheriting template-based ones
* [FIXED] correct debug info of the constructor self variable
* [FIXED]#413 - boxing variadic argument
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