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
We have some methods with semantic meanings to construct a statement, such as
public static MethodBodyStatement Declare(string name, TypedValueExpression value, out TypedValueExpression variable)
this loses its type information, for instance, when I put a StreamExpression as value, we only get a TypedValueExpression as the variable.
StreamExpression
TypedValueExpression
If possible, we could introduce a generic version of this method, such as
public static MethodBodyStatement Declare<T>(string name, T value, out T variable) where T : TypedValueExpression
therefore we could get this usage:
Declare("stream", streamExpression, out StreamExpression streamVar);
The text was updated successfully, but these errors were encountered:
ITypedValueExpressionFactory<T>
This has been solved by #3720 in a different direction, therefore closing this issue.
Sorry, something went wrong.
ArcturusZhang
Successfully merging a pull request may close this issue.
We have some methods with semantic meanings to construct a statement, such as
this loses its type information, for instance, when I put a
StreamExpression
as value, we only get aTypedValueExpression
as the variable.If possible, we could introduce a generic version of this method, such as
therefore we could get this usage:
The text was updated successfully, but these errors were encountered: