File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
python/ql/test/library-tests/PointsTo/regressions/wrong/classmethod Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 33| test.py:17:15:17:17 | ControlFlowNode for cls | self instance of Foo |
44| test.py:22:15:22:17 | ControlFlowNode for cls | class Foo |
55| test.py:22:15:22:17 | ControlFlowNode for cls | self instance of Foo |
6+ | test.py:27:15:27:17 | ControlFlowNode for cls | class Foo |
7+ | test.py:27:15:27:17 | ControlFlowNode for cls | self instance of Foo |
Original file line number Diff line number Diff line change @@ -21,9 +21,15 @@ def problem_through_instance(cls):
2121 def problem_through_class (cls ):
2222 check (cls ) # same as above
2323
24+ @classmethod
25+ @some_decorator
26+ def also_problem (cls ):
27+ check (cls ) # same as above
28+
2429# We need to call the methods before our analysis works
2530f1 = Foo ()
2631f1 .no_problem ()
2732f1 .problem_through_instance ()
33+ f1 .also_problem ()
2834
2935Foo .problem_through_class ()
You can’t perform that action at this time.
0 commit comments