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

Support for params within class constructor #196

Closed
waclaw66 opened this issue Nov 26, 2021 · 0 comments · Fixed by #199
Closed

Support for params within class constructor #196

waclaw66 opened this issue Nov 26, 2021 · 0 comments · Fixed by #199

Comments

@waclaw66
Copy link

Lets have following class...

public class Array<T> : List<T>
{
    public Array() {}
    public Array(IEnumerable<T> collection) : base(collection) {}
    public Array(params T[] items) : base(items) {}
}

It would be nice to have support for such construction...
new Array<int>(1, 2, 3)

Parser.ParseNew() method doesn't handle it properly.
That construction can be achieved only with static method currently.

metoule added a commit to metoule/DynamicExpresso that referenced this issue Dec 7, 2021
metoule added a commit that referenced this issue Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants