We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 240374c commit 40fce2aCopy full SHA for 40fce2a
src/gf.c
@@ -1524,13 +1524,14 @@ static void parameters_to_closureenv(jl_value_t *ast, jl_svec_t *tvars)
1524
jl_array_t *vi=NULL;
1525
JL_GC_PUSH1(&vi);
1526
for(i=0; i < tvarslen; i++) {
1527
- jl_sym_t *sp = ((jl_tvar_t*)tvs[i])->name;
+ jl_tvar_t *tv = (jl_tvar_t*)tvs[i];
1528
+ jl_sym_t *sp = tv->name;
1529
int found = 0;
1530
// add this item to closed
1531
assert(!jl_in_vinfo_array(closed, sp));
1532
vi = jl_alloc_cell_1d(3);
1533
jl_cellset(vi, 0, sp);
- jl_cellset(vi, 1, jl_any_type);
1534
+ jl_cellset(vi, 1, tv->ub == jl_any_type ? jl_any_type : jl_wrap_Type((jl_value_t*)tv));
1535
jl_cellset(vi, 2, jl_box_long(1));
1536
jl_cell_1d_push(closed, (jl_value_t*)vi);
1537
// delete this item from the list of static parameters
0 commit comments