AccumulatorCache: support instance methods

Make the AccumulatorCache also work with instance methods, e.g.:

class Foo:
  @AccumulatorCache
  def bar(self):
    return 42

Previously this would fail because the self got lost.

Merge request reports

Loading