Skip to content

Commit

Permalink
Merge pull request #9161 from JuliaLang/bitstypes
Browse files Browse the repository at this point in the history
allow all bits values as type parameters. closes #6081
  • Loading branch information
JeffBezanson committed Dec 5, 2014
2 parents 44347a9 + 1c27996 commit ebfc7da
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 ebfc7da

Please sign in to comment.