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

Error when as Func<string> #125

Open
cesaryuan opened this issue Jan 28, 2022 · 3 comments
Open

Error when as Func<string> #125

cesaryuan opened this issue Jan 28, 2022 · 3 comments
Assignees

Comments

@cesaryuan
Copy link

cesaryuan commented Jan 28, 2022

Execute the code below with EvalManager.DefaultContext.Execute

object handler = "";
if(handler is string)
{
	// anything
	int a = 1;
} 
else if (handler is Func<string>)
{
	(handler as Func<string>)();
}

It will throw Exception like this

Oops! A general error has occurred.Contact our support team for more information or if you believe it's an error on our part: info@zzzprojects.com

Version: 4.0.71

@JonathanMagnan JonathanMagnan self-assigned this Jan 28, 2022
@JonathanMagnan
Copy link
Member

Hello @cesaryuan ,

Thank you for reporting, we will look at it.

Best Regards,

Jon

@cesaryuan
Copy link
Author

Hi, Any updates here?

@JonathanMagnan
Copy link
Member

Hello @cesaryuan ,

Unfortunately supporting it correctly is harder than we initially thought.

The first prototype fix that has been proposed by my employee was refused. This week, we made some progress to better parse this kind of syntax, but we have not completed it yet.

The good thing is that we continue to work on it, so we hope to be able to provide you a fix soon but we do not have any determined date yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants