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

Hard-coded left injection #28

Closed
matthewhammer opened this issue Dec 21, 2017 · 2 comments
Closed

Hard-coded left injection #28

matthewhammer opened this issue Dec 21, 2017 · 2 comments
Assignees

Comments

@matthewhammer
Copy link
Member

(ZExp.RightAsc (HExp.Inj side (HExp.EmptyHole u')) (ZTyp.LeftSum (ZTyp.CursorT HTyp.Hole) HTyp.Hole)),

Seems like there's a bug where injection construction always creates a Left injection, even when the user asks for a right injection.

@matthewhammer matthewhammer self-assigned this Dec 21, 2017
@cyrus-
Copy link
Member

cyrus- commented Dec 21, 2017 via email

@matthewhammer
Copy link
Member Author

Yeah, I just realized that's the wrong line (the line I quoted is fine), but there is an issue elsewhere. It's just more subtle than that.

To recreate the issue:

  • Create a right injection
  • Fill the value of the injection to be a number constant
  • The injection will be rewritten to be a left injection

cyrus- added a commit that referenced this issue Dec 21, 2017
@cyrus- cyrus- closed this as completed Dec 21, 2017
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

No branches or pull requests

2 participants