mirror of
https://github.com/github/codeql.git
synced 2026-04-25 08:45:14 +02:00
QL: 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