We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d5cf0b commit 9b0ad82Copy full SHA for 9b0ad82
1 file changed
python/ql/test/experimental/dataflow/fieldflow/test.py
@@ -309,6 +309,17 @@ def test_class_override():
309
SINK(WithTuple2.my_tuple[0]) # $ MISSING: flow="SOURCE, l:-10 -> WithTuple2.my_tuple[0]"
310
SINK(inst.my_tuple[0]) # $ MISSING: flow="SOURCE, l:-11 -> inst.my_tuple[0]"
311
312
+
313
+class Outer:
314
+ src = SOURCE
315
+ class Inner:
316
317
318
+@expects(2) # $ unresolved_call=expects(..) unresolved_call=expects(..)(..)
319
+def test_nested_class():
320
+ SINK(Outer.src) # $ flow="SOURCE, l:-6 -> Outer.src"
321
+ SINK(Outer.Inner.src) # $ flow="SOURCE, l:-5 -> Outer.Inner.src"
322
323
# --------------------------------------
324
# unique classes from functions
325
0 commit comments