Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Jul 20, 2023
1 parent 7bccc0a commit c2f6724
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/parser/syntax/test_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@
STAFF
ADMIN
@external
def foo(x: Roles) -> bool:
return x in [Roles.USER, Roles.ADMIN]
""",
TypeMismatch,
),
(
"""
enum Roles:
USER
STAFF
ADMIN
@external
def foo(x: Roles) -> Roles:
return x.USER # can't dereference on enum instance
Expand Down

0 comments on commit c2f6724

Please sign in to comment.