File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
docs/codeql/ql-language-reference Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
388387Non-extending subtypes
@@ -391,6 +390,7 @@ Non-extending subtypes
391390Besides 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
410410This has deep implications on method resolution when complex class hierarchies are involved.
411411The 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`.
431431This means that `select any(Foo b).foo() ` yields only `foo `.
432432Had `bar been defined as `extends Foo `, then `select any(Foo b).foo() ` would yield `bar `.
433433
434-
435434.. _character-types :
436435.. _domain-types :
437436
You can’t perform that action at this time.
0 commit comments