Skip to content

Commit 2d47537

Browse files
authored
Slightly modified version of Henning's suggestion
1 parent bb9e800 commit 2d47537

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/language/ql-handbook/types.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,7 @@ For example, the following construction is legal::
511511
}
512512

513513
However, a similar implementation that restricts ``InitialValueSource`` in a class extension is not valid.
514-
The class ``DefiniteInitialization`` triggers a type test for ``InitialValueSource``, which results in an illegal recursion
515-
``DefiniteInitialization -> InitialValueSource -> UnknownInitialGarbage -> ¬DefiniteInitialization`` since ``UnknownInitialGarbage`` relies on ``DefiniteInitialization``::
514+
If we had implemented ``DefiniteInitialization`` as a class extension instead, it would trigger a type test for ``InitialValueSource``. This results in an illegal recursion ``DefiniteInitialization -> InitialValueSource -> UnknownInitialGarbage -> ¬DefiniteInitialization`` since ``UnknownInitialGarbage`` relies on ``DefiniteInitialization``::
516515

517516
class DefiniteInitialization extends InitialValueSource {
518517
DefiniteInitialization() {

0 commit comments

Comments
 (0)