summaryrefslogtreecommitdiff
path: root/python/testData/hierarchy/call/Static/Inheritance/main.py
blob: 89c37de9bcebd9bc76c218cf6f4c0e4c33db4683 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

class A(object):
    def target_func(self):
        pass


class B(A):
    pass


class C(object):
    def func(self, a):
        a.target_func()


def foo1(b):
    f = b.target_func


def foo2(b):
    b.target_func()


def bar1(*args):
    pass


def bar2(*args):
    pass


b = B()
foo1(b)
foo2(b)
bar1(b.target_<caret>func)
bar2(b.target_func())