From e52407604537e5bad65177e25dd088669c26f92f Mon Sep 17 00:00:00 2001 From: Taus Date: Wed, 13 Oct 2021 13:03:30 +0000 Subject: [PATCH] Extend the tests slightly Adds a test for when the call is to an outer, non-member predicate. --- ql/test/queries/style/ImplicitThis/Good.qll | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ql/test/queries/style/ImplicitThis/Good.qll b/ql/test/queries/style/ImplicitThis/Good.qll index 95b5f17f1de..35b8023b572 100644 --- a/ql/test/queries/style/ImplicitThis/Good.qll +++ b/ql/test/queries/style/ImplicitThis/Good.qll @@ -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" } }