mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Add missing override.
This commit is contained in:
@@ -149,7 +149,7 @@ Instead of overriding both definitions, it uses the definition from ``B``.
|
||||
|
||||
class C extends A, B {
|
||||
// Need to define `int getANumber()`; otherwise it would be ambiguous
|
||||
int getANumber() {
|
||||
override int getANumber() {
|
||||
result = B.super.getANumber()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user