blob: 72f751a0fb90834d86783a9082bc108e1680017a [file] [log] [blame]
Wenzel Jakob48548ea2016-01-17 22:36:44 +01001Rabbit is a parrot
Wenzel Jakob48548ea2016-01-17 22:36:44 +01002Rabbit is a parrot
3Polly is a parrot
Wenzel Jakob954b7932016-07-10 10:13:18 +02004Polly is a parrot
Wenzel Jakob48548ea2016-01-17 22:36:44 +01005Molly is a dog
Wenzel Jakob954b7932016-07-10 10:13:18 +02006Molly is a dog
7Woof!
Wenzel Jakob48548ea2016-01-17 22:36:44 +01008The following error is expected: Incompatible function arguments. The following argument types are supported:
Dean Moldovaned23dda2016-08-04 01:40:40 +02009 1. (arg0: example.Dog) -> None
Jason Rhinelander3f589372016-08-07 13:05:26 -040010 Invoked with: <example.Pet object at 0x7ffaf4b00db0>
Wenzel Jakob48548ea2016-01-17 22:36:44 +010011Callback function 1 called!
12False
13Callback function 2 called : Hello, x, True, 5
145
Ben Pritchard1b522462016-03-10 16:31:38 -050015Callback function 2 called : Hello, from, partial, object
16False
17Callback function 3 called : Partial object with one argument
18False
Wenzel Jakob48548ea2016-01-17 22:36:44 +010019func(43) = 44
Wenzel Jakob954b7932016-07-10 10:13:18 +020020func(43) = 44
Brad Harmon835fc062016-06-16 13:19:15 -050021func(number=43) = 44
Jason Rhinelander3f589372016-08-07 13:05:26 -040022### Payload @ 0x7ffdcee09c80 created via default constructor
23### Payload @ 0x7ffdcee09c88 created via copy constructor
24### Payload @ 0xb54500 created via move constructor
25### Payload @ 0x7ffdcee09c88 destroyed
26### Payload @ 0x7ffdcee09c80 destroyed
27### Payload @ 0xb54500 destroyed
28Payload instances not destroyed: 0
29Copy constructions: 1
30Move constructions: True
Wenzel Jakob954b7932016-07-10 10:13:18 +020031argument matches dummy_function
32eval(1) = 2
33roundtrip..
34argument matches dummy_function
35eval(1) = 2
36could not convert to a function pointer.
37eval(1) = 3
38could not convert to a function pointer.
39All OK!
40could not convert to a function pointer.
41All OK!
Dean Moldovaned23dda2016-08-04 01:40:40 +020042test_callback3(arg0: Callable[[int], int]) -> None
Jason Rhinelander3f589372016-08-07 13:05:26 -040043
Dean Moldovaned23dda2016-08-04 01:40:40 +020044test_callback4() -> Callable[[int], int]
Jason Rhinelander3f589372016-08-07 13:05:26 -040045