Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@when decorator fails to catch duplicate identifiers #18

Closed
lordmauve opened this issue Apr 14, 2019 · 0 comments · Fixed by #20
Closed

@when decorator fails to catch duplicate identifiers #18

lordmauve opened this issue Apr 14, 2019 · 0 comments · Fixed by #20

Comments

@lordmauve
Copy link
Owner

This kind of usage will not cause an exception in adventurelib; it will match and simply throw away a term:

@when('use ITEM on ITEM') 
def f(item): 
    pass

Instead an exception should be raised when defining a function with a name collision like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant