[ClavaWeaver] Adds missing type copy to weaver test 'GlobalAttributes'
@@ -6,7 +6,7 @@ aspectdef GlobalAttributes
var $type = $vardecl.type;
println("type keys: " + $type.keys);
println("type builtin kind: " + $type.getValue('builtinKind'));
- $vardecl.type = $type.setValue('builtinKind', 'float');
+ $vardecl.type = $type.copy().setValue('builtinKind', 'float');
println("Changed vardecl: " + $vardecl.code);
end
