diff options
Diffstat (limited to 'src/hir/from_ast_expr.cpp')
-rw-r--r-- | src/hir/from_ast_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir/from_ast_expr.cpp b/src/hir/from_ast_expr.cpp index cd2b27fa..9085bd3b 100644 --- a/src/hir/from_ast_expr.cpp +++ b/src/hir/from_ast_expr.cpp @@ -627,7 +627,7 @@ struct LowerHIR_ExprNode_Visitor: if( e.struct_->m_data.is_Struct() ) { ERROR(v.span(), E0000, "Named value referring to a struct that isn't tuple-like or unit-like - " << v.m_path); } - is_tuple_constructor = e.struct_->m_data.as_Tuple().ents.size() > 0; + is_tuple_constructor = e.struct_->m_data.is_Tuple(); } else { |