File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
docs/codeql/ql-language-reference Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -417,13 +417,13 @@ The following example demonstrates this.
417
417
.. code-block :: ql
418
418
419
419
class Interface extends int {
420
- Interface() { this in [1 .. 100 ] }
420
+ Interface() { this in [1 .. 10 ] }
421
421
string foo() { result = "" }
422
422
}
423
423
424
- class Foo extends Interface {
425
- Foo() { this in [1 .. 10 ] }
426
- override string foo() { result = "foo" }
424
+ class Foo extends int {
425
+ Foo() { this in [1 .. 5 ] }
426
+ string foo() { result = "foo" }
427
427
}
428
428
429
429
class Bar extends Interface instanceof Foo {
@@ -432,8 +432,8 @@ The following example demonstrates this.
432
432
433
433
Here, the method `Bar::foo ` does not override `Foo::foo `.
434
434
Instead, it overrides only `Interface::foo `.
435
- This means that `select any(Foo b ).foo() ` yields only `foo `.
436
- Had `bar been defined as `extends Foo `, then `select any(Foo b).foo( ) ` would yield `bar `.
435
+ This means that `select any(Foo f ).foo() ` yields only `foo `.
436
+ Had `Bar ` been defined as `extends Foo `, then `select any(Foo b) ` would yield `bar `.
437
437
438
438
.. _character-types :
439
439
.. _domain-types :
You can’t perform that action at this time.
0 commit comments