We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi
I have this piece of c# code where text is object type
text
object
public string GetText() { if (text is Delegate d) return d?.Call()?.ToString(); return text?.ToString(); }
Here is the generated code, that doesnt test for Delegate at all, hust checked if text is not null
GetText: function () { var $t; var d; if (!H5.staticEquals(((d = this.text)), null)) { return !H5.staticEquals(d, null) && ($t = d.call()) != null ? H5.toString($t) : null; } return this.text != null ? H5.toString(this.text) : null; }
I would have expected
GetText: function () { var $t; var d; if (!H5.staticEquals(((d = this.text)), null) && H5.isFunction(d)) { return !H5.staticEquals(d, null) && ($t = d.call()) != null ? H5.toString($t) : null; } return this.text != null ? H5.toString(this.text) : null; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi
I have this piece of c# code where
text
isobject
typeHere is the generated code, that doesnt test for Delegate at all, hust checked if text is not null
I would have expected
The text was updated successfully, but these errors were encountered: