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

Sets do not support pattern types. #412

Open
ZekeMedley opened this issue Jun 14, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@ZekeMedley
Copy link
Member

commented Jun 14, 2019

Creating a set of patterns

local s: set[pattern] = {/hello/, /goodbye/};

gives an error error in pattern: bad index type (pattern).

This might just be a matter of making a change to the index type checking for tables here.

@jsiwek

This comment has been minimized.

Copy link
Member

commented Jun 14, 2019

Don't think there's a reason why not not allow it, at least anymore. Likely would also have to update the CompHash.cc code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.