@@ -425,10 +425,7 @@ rec {
426 coerceVal = val:
426 coerceVal = val:
427 if finalType.check val then val
427 if finalType.check val then val
429− coerced = coerceFunc val;
428+ else coerceFunc val;
430− in assert finalType.check coerced; coerced;
432 in finalType.merge loc (map (def: def // { value = coerceVal def.value; }) defs);
429 in finalType.merge loc (map (def: def // { value = coerceVal def.value; }) defs);
433 getSubOptions = finalType.getSubOptions;
430 getSubOptions = finalType.getSubOptions;
434 getSubModules = finalType.getSubModules;
431 getSubModules = finalType.getSubModules;