Skip to content

Commit

Permalink
fix #6389
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Apr 4, 2014
1 parent e670a17 commit 23e8275
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/toplevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ void jl_set_datatype_super(jl_datatype_t *tt, jl_value_t *super)
{
if (!jl_is_datatype(super) || super == (jl_value_t*)jl_undef_type ||
!jl_is_abstracttype(super) ||
tt->name == ((jl_datatype_t*)super)->name ||
jl_subtype(super,(jl_value_t*)jl_vararg_type,0) ||
jl_subtype(super,(jl_value_t*)jl_type_type,0)) {
jl_errorf("invalid subtyping in definition of %s",tt->name->name->name);
Expand Down

0 comments on commit 23e8275

Please sign in to comment.