Skip to content

Commit

Permalink
allow all bits values as type parameters. closes #6081
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson authored and timholy committed Nov 26, 2014
1 parent 9f76ed3 commit 1c27996
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 @@ -1592,7 +1592,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 1c27996

Please sign in to comment.