@@ -654,9 +654,9 @@ function parse_model!(exprs, comps, ext, eqs, icon, vs, ps, sps, c_evts, d_evts,
654654 elseif mname == Symbol (" @defaults" )
655655 parse_system_defaults! (exprs, arg, dict)
656656 elseif mname == Symbol (" @constraints" )
657- parse_costs ! (cons, dict, body)
657+ parse_constraints ! (cons, dict, body)
658658 elseif mname == Symbol (" @costs" )
659- parse_constraints ! (costs, dict, body)
659+ parse_costs ! (costs, dict, body)
660660 elseif mname == Symbol (" @consolidate" )
661661 parse_consolidate! (body, dict)
662662 else
@@ -1160,7 +1160,7 @@ function parse_constraints!(cons, dict, body)
11601160 Base. remove_linenums! (body)
11611161 for arg in body. args
11621162 push! (cons, arg)
1163- push! (dict[:constraints ], readable_code .(cons) ... )
1163+ push! (dict[:constraints ], readable_code (arg) )
11641164 end
11651165end
11661166
@@ -1169,7 +1169,7 @@ function parse_costs!(costs, dict, body)
11691169 Base. remove_linenums! (body)
11701170 for arg in body. args
11711171 push! (costs, arg)
1172- push! (dict[:costs ], readable_code .(costs) ... )
1172+ push! (dict[:costs ], readable_code (arg) )
11731173 end
11741174end
11751175
0 commit comments