File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -288,6 +288,7 @@ function combinedef(dict::Dict)
288
288
rtype = get (dict, :rtype , nothing )
289
289
params = get (dict, :params , [])
290
290
wparams = get (dict, :whereparams , [])
291
+ body = block (dict[:body ])
291
292
name = dict[:name ]
292
293
name_param = isempty (params) ? name : :($ name{$ (params... )})
293
294
# We need the `if` to handle parametric inner/outer constructors like
@@ -296,24 +297,24 @@ function combinedef(dict::Dict)
296
297
if rtype== nothing
297
298
@q (function $name_param ($ (dict[:args ]. .. );
298
299
$ (dict[:kwargs ]. .. ))
299
- $ (dict[ : body] . args... )
300
+ $ (body. args... )
300
301
end )
301
302
else
302
303
@q (function $name_param ($ (dict[:args ]. .. );
303
304
$ (dict[:kwargs ]. .. )):: $rtype
304
- $ (dict[ : body] . args... )
305
+ $ (body. args... )
305
306
end )
306
307
end
307
308
else
308
309
if rtype== nothing
309
310
@q (function $name_param ($ (dict[:args ]. .. );
310
311
$ (dict[:kwargs ]. .. )) where {$ (wparams... )}
311
- $ (dict[ : body] . args... )
312
+ $ (body. args... )
312
313
end )
313
314
else
314
315
@q (function $name_param ($ (dict[:args ]. .. );
315
316
$ (dict[:kwargs ]. .. )):: $rtype where {$ (wparams... )}
316
- $ (dict[ : body] . args... )
317
+ $ (body. args... )
317
318
end )
318
319
end
319
320
end
You can’t perform that action at this time.
0 commit comments