Skip to content

Commit ee13efb

Browse files
committed
some whitesapce fixes
1 parent dbda1bf commit ee13efb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/codeql/ql-language-reference/types.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ from ``OneTwoThree`` and ``int``.
382382
must :ref:`override <overriding-member-predicates>` those definitions to avoid ambiguity.
383383
:ref:`Super expressions <super>` are often useful in this situation.
384384

385-
386385
.. _instanceof-extensions:
387386

388387
Non-extending subtypes
@@ -391,6 +390,7 @@ Non-extending subtypes
391390
Besides extending base types, classes can also declare `instanceof` relationships with other types.
392391

393392
.. code-block:: ql
393+
394394
class Foo extends int {
395395
Foo() { this in [1 .. 10] }
396396
@@ -410,8 +410,8 @@ Crucially, the base class methods are not just hidden. The extension relationshi
410410
This has deep implications on method resolution when complex class hierarchies are involved.
411411
The following example demonstrates this.
412412

413-
414413
.. code-block:: ql
414+
415415
class Interface extends int {
416416
Interface() { this in [1 .. 100] }
417417
string foo() { result = "" }
@@ -431,7 +431,6 @@ Instead, it overrides only `Interface::foo`.
431431
This means that `select any(Foo b).foo()` yields only `foo`.
432432
Had `bar been defined as `extends Foo`, then `select any(Foo b).foo()` would yield `bar`.
433433

434-
435434
.. _character-types:
436435
.. _domain-types:
437436

0 commit comments

Comments
 (0)