Skip to content

Commit 6546051

Browse files
committed
Call all kinds of methods in the compiled code
1 parent 555b202 commit 6546051

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mypyc/test-data/run-classes.test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2716,6 +2716,11 @@ from typing import overload, Optional, Union
27162716

27172717
class C:
27182718
def foo(self, x: Test) -> bool:
2719+
assert Test.ONE.is_one()
2720+
assert x.next(2) == Test.THREE
2721+
assert x.prev(2) == Test.ONE
2722+
assert x.enigma(22)
2723+
assert x.enigma("22") == 22
27192724
return x.is_one(inverse=True)
27202725

27212726
class Test(Enum):

0 commit comments

Comments
 (0)