Skip to content

Commit a75db90

Browse files
Fix partial parametric inheritance
1 parent 108307e commit a75db90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/jlcxx/module.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,7 @@ TypeWrapper<T> Module::add_type_internal(const std::string& name, JLSuperT* supe
13161316
fnames = jl_svec1(jl_symbol("cpp_object"));
13171317
ftypes = jl_svec1(jl_voidpointer_type);
13181318

1319-
if(jl_is_datatype(super_generic) && !jl_is_unionall(super_generic))
1319+
if(jl_is_datatype(super_generic) && !jl_is_unionall(super_generic) && !(is_parametric && SuperParametersT::nb_parameters != 0))
13201320
{
13211321
super = (jl_datatype_t*)super_generic;
13221322
}

0 commit comments

Comments
 (0)