mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Merge pull request #15190 from fossilet/fix-class
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