Skip to content

Commit 1bdf2af

Browse files
committed
Removed types
1 parent 79343a1 commit 1bdf2af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/HybridSymbolics.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ macro hybrid(fun)
5252
fixed_args = []
5353
varying_args = []
5454
all_args = []
55-
for arg in fun_args
55+
for (i,arg) in enumerate(fun_args)
5656
name, type = name_and_type(arg)
5757
if type == :Global
5858
push!(global_args, name)
@@ -62,6 +62,7 @@ macro hybrid(fun)
6262
push!(varying_args, name)
6363
end
6464
push!(all_args, name)
65+
fun.args[1].args[1+i] = name
6566
end
6667
global_args = Expr(:vect, global_args...)
6768
fixed_args = Expr(:vect, fixed_args...)

0 commit comments

Comments
 (0)