Open
Description
My original where I discovered the issue was more complex, but I distilled it down to the simplest reproducible case I could find which I've placed in this fiddle: https://dotnetfiddle.net/9NzZ0O
Note the final script which produces a null
result when untyped, and throws a null reference exception when a type is supplied.
Metadata
Metadata
Assignees
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
codingseb commentedon Aug 25, 2021
Hello @Xjph, sorry for my late response.
Need to investigate a bit.
But for now you can easily manage it by returning the
result
variable each times after if blocks:or simpler : with
evaluator.OptionScriptNeedSemicolonAtTheEndOfLastExpression = false;
Xjph commentedon Aug 25, 2021
The explicit
return
is an acceptable workaround for my use case, so certainly no need to rush on this as far as I'm concerned.Thanks for your time!