Skip to content

Commit

Permalink
allow all bits values as type parameters. closes JuliaLang#6081
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Aug 29, 2014
1 parent 4af9199 commit b429303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jltypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,7 @@ static int valid_type_param(jl_value_t *v)
}
else {
// TODO: maybe more things
return jl_is_type(v) || jl_is_long(v) || jl_is_symbol(v) || jl_is_typevar(v) || jl_is_bool(v);
return jl_is_type(v) || jl_is_typevar(v) || jl_is_symbol(v) || jl_isbits(jl_typeof(v));
}
}

Expand Down

0 comments on commit b429303

Please sign in to comment.