Skip to content

Commit b429303

Browse files
committed
allow all bits values as type parameters. closes #6081
1 parent 4af9199 commit b429303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jltypes.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ static int valid_type_param(jl_value_t *v)
15901590
}
15911591
else {
15921592
// TODO: maybe more things
1593-
return jl_is_type(v) || jl_is_long(v) || jl_is_symbol(v) || jl_is_typevar(v) || jl_is_bool(v);
1593+
return jl_is_type(v) || jl_is_typevar(v) || jl_is_symbol(v) || jl_isbits(jl_typeof(v));
15941594
}
15951595
}
15961596

0 commit comments

Comments
 (0)