diff options
Diffstat (limited to 'src/ast/ast.cpp')
-rw-r--r-- | src/ast/ast.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ast/ast.cpp b/src/ast/ast.cpp index 39250a41..df5f4d5a 100644 --- a/src/ast/ast.cpp +++ b/src/ast/ast.cpp @@ -175,6 +175,9 @@ Enum Enum::clone() const Struct Struct::clone() const { TU_MATCHA( (m_data), (e), + (Unit, + return Struct(m_params.clone()); + ), (Tuple, decltype(e.ents) new_fields; for(const auto& f : e.ents) |