You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(ast): add support for LambdaExpr to infer type from return expr type (#1011)
This will enable it to be assigned to an appropriate variable
Before this change: cannot assign a lambda expression to a variable because its type is always VOID.
After this change: lambda expression builder will infer type from returnExpr’s expression type. Allowing it to be assigned to an appropriate variable. Because returnExpr is a required field, its type should always be accessible.
Example: a naive sample usage is provided in JavaWriterVisitorTest.java as test.
0 commit comments