File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 328
328
factEmbeddedObject(A , B , C ))
329
329
).
330
330
331
+ % We committed to a condition being true (or false). Make sure that it stays
332
+ % that way.
333
+ :- table insanityNegation /1 as incremental .
334
+ insanityNegation (Out ) :-
335
+ negation_commit(G ),
336
+
337
+ not(G ),
338
+
339
+ Out = (
340
+ logwarnln('Consistency checks failed.~nThe condition "~Q" was committed to, but has become false.~n' , [G ])
341
+ ).
342
+
331
343
:- table sanityChecks /1 as incremental .
332
344
sanityChecks (Out ) :-
333
345
insanityNoBaseConsistency(Out );
346
358
insanityInheritanceLoop(Out );
347
359
insanityContradictoryMerges(Out );
348
360
insanityContradictoryNOTConstructor(Out );
349
- insanityTwoRealDestructorsOnClass(Out ).
361
+ insanityTwoRealDestructorsOnClass(Out );
362
+ insanityNegation(Out ).
350
363
351
364
sanityChecks :-
352
365
sanityChecks(Out )
You can’t perform that action at this time.
0 commit comments