mirror of
https://github.com/github/codeql.git
synced 2026-02-08 11:11:06 +01:00
Extend the tests slightly
Adds a test for when the call is to an outer, non-member predicate.
This commit is contained in:
@@ -9,8 +9,13 @@ class Foo extends string {
|
||||
|
||||
/* Okay because not a member predicate. */
|
||||
string getBaz() { result = Baz::baz() }
|
||||
|
||||
/* Okay because not a member predicate. */
|
||||
string getOuterQuux() { result = getQuux() }
|
||||
}
|
||||
|
||||
string getQuux() { result = "quux" }
|
||||
|
||||
module Baz {
|
||||
string baz() { result = "baz" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user