diff --git a/src/compiler/crystal/semantic/ast.cr b/src/compiler/crystal/semantic/ast.cr index c60780bf15c2..ac54ca4df47a 100644 --- a/src/compiler/crystal/semantic/ast.cr +++ b/src/compiler/crystal/semantic/ast.cr @@ -125,6 +125,8 @@ module Crystal # and must be preserved when cloned arg.set_type @type + arg.annotations = @annotations.dup + arg end end