@@ -354,12 +354,17 @@ end );
354354InstallOtherMethodForCompilerForCAP( LinearClosureMorphismNC,
355355 [ IsLinearClosure, IsLinearClosureObject, IsList, IsList, IsLinearClosureObject ] ,
356356 function ( category, source, coefficients, support_morphisms, range )
357+ local underlying_category;
358+
359+ underlying_category := UnderlyingCategory( category );
360+
361+ # % CAP_JIT_DROP_NEXT_STATEMENT
362+ Assert ( 0 , ForAll( support_morphisms, mor -> IsIdenticalObj( CapCategory( mor ), underlying_category ) ) );
357363
358364 return CreateCapCategoryMorphismWithAttributes( category,
359- source, range,
360- CoefficientsList, coefficients,
361- SupportMorphisms, support_morphisms
362- );
365+ source, range,
366+ CoefficientsList, coefficients,
367+ SupportMorphisms, support_morphisms );
363368
364369end );
365370
@@ -638,7 +643,7 @@ InstallGlobalFunction( INSTALL_FUNCTIONS_FOR_LINEAR_CLOSURE,
638643
639644 coeffs := ListX( CoefficientsList( alpha ), CoefficientsList( beta ), { a,b } -> a * b );
640645
641- supp := ListX( SupportMorphisms( alpha ), SupportMorphisms( beta ), { alpha, beta } -> PreCompose( underlying_category, alpha, beta ) );
646+ supp := ListX( SupportMorphisms( alpha ), SupportMorphisms( beta ), { a, b } -> PreCompose( underlying_category, a, b ) );
642647
643648 return MorphismConstructor( cat, Source( alpha ), Pair( coeffs, supp ), Range( beta ) );
644649
0 commit comments