Skip to content

Commit

Permalink
Merge pull request #4085 from Ten0/auto_type_parenthesized_expr_support
Browse files Browse the repository at this point in the history
Parenthesized expression support in #[dsl::auto_type]
  • Loading branch information
Ten0 authored Jun 27, 2024
2 parents e9093a2 + 719b91a commit 99ef8bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dsl_auto_type/src/auto_type/expression_type_inference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ impl TypeInferrer<'_> {
(syn::Expr::Group(syn::ExprGroup { expr, .. }), type_hint) => {
return self.try_infer_expression_type(expr, type_hint)
}
(syn::Expr::Paren(syn::ExprParen { expr, .. }), type_hint) => {
return self.try_infer_expression_type(expr, type_hint)
}
(
syn::Expr::Tuple(syn::ExprTuple {
elems: expr_elems, ..
Expand Down

0 comments on commit 99ef8bb

Please sign in to comment.