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

[issue] Shows bug with empty tuple promotion #56

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

ptarjan
Copy link
Contributor

@ptarjan ptarjan commented Sep 22, 2017

We ran into this bug in production and I'm not too sure how to fix it. The :send promotes the [] to Array<%bot> and then iterates over the %bot, but in this case it would never enter the block so it should just skip over checking it with an empty tuple. (Our case was obviously more complex but I boiled it down here)

@jeffrey-s-foster
Copy link
Contributor

RDL has a notion of "raw" generic types where the parameters are not instantiated. I'm surprised that [] is getting promoted to Array<%bot>. It really should be staying as just Array, I think, and then the each call should somehow ignore the parameters.

I suspect this idea I have about how this should work is not actually fully implemented. I have a feeling it worked in a version a while back but then probably got broken in this way when I beefed up support for generics. I'll try to take a look and think about how this should be implemented.

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 this pull request may close these issues.

2 participants