Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Call all kinds of methods in the compiled code
  • Loading branch information
ilevkivskyi committed Aug 11, 2025
commit 6546051da4f6230b0695a8e117b31fe61a37e1a6
5 changes: 5 additions & 0 deletions mypyc/test-data/run-classes.test
Original file line number Diff line number Diff line change
Expand Up @@ -2716,6 +2716,11 @@ from typing import overload, Optional, Union

class C:
def foo(self, x: Test) -> bool:
assert Test.ONE.is_one()
assert x.next(2) == Test.THREE
assert x.prev(2) == Test.ONE
assert x.enigma(22)
assert x.enigma("22") == 22
return x.is_one(inverse=True)

class Test(Enum):
Expand Down
Loading