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

Unexpected match of structures #21

Open
pamelafox opened this issue Nov 4, 2015 · 1 comment
Open

Unexpected match of structures #21

pamelafox opened this issue Nov 4, 2015 · 1 comment
Labels

Comments

@pamelafox
Copy link
Collaborator

This structure:

fill(_);
if ($ifCond) {
    fill(_);
} 
rect(_);

matches true to:

if (mouseIsPressed) {
    fill(255, 0, 0);
}
fill(0, 255, 68);
rect(0, 0, 400, 200);

I replicated on http://khan.github.io/structuredjs/, which I recently pushed, so it should be up to date.

@pamelafox pamelafox added the bug label Nov 4, 2015
@mr-martian
Copy link
Contributor

Still matches if rect(...); is removed.
Does not match you switch it around:
if($i) { fill(_); } fill(_); and fill(1,1,1); if(345) { fill(3,3,3); } returns false

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

No branches or pull requests

2 participants