Skip to content

Commit d0cb138

Browse files
authored
QL: Extend the tests slightly
Adds a test for when the call is to an outer, non-member predicate.
1 parent a0e2bd5 commit d0cb138

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • ql/test/queries/style/ImplicitThis

ql/test/queries/style/ImplicitThis/Good.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ class Foo extends string {
99

1010
/* Okay because not a member predicate. */
1111
string getBaz() { result = Baz::baz() }
12+
13+
/* Okay because not a member predicate. */
14+
string getOuterQuux() { result = getQuux() }
1215
}
1316

17+
string getQuux() { result = "quux" }
18+
1419
module Baz {
1520
string baz() { result = "baz" }
1621
}

0 commit comments

Comments
 (0)