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

Don't discard the type definedness when handling parameters. #865

Closed
wants to merge 1 commit into from
Closed

Don't discard the type definedness when handling parameters. #865

wants to merge 1 commit into from

Conversation

LemonBoy
Copy link
Contributor

@LemonBoy LemonBoy commented Sep 4, 2016

RT#129005

I'm not 100% happy with the current solution as it allows the user to specify an unsatisfiable superposition of definedness such as in this short example:

constant IntD := Int:D; (sub (IntD:U $a) { ... })(Int)
constant IntD := Int:D; (sub (IntD:U $a) { ... })(42)

Probably it's just fine as-is, it's very much DWIM heh.
Another option would be to throw an exception if the definedness constraints are unsatisfiable.

@LemonBoy LemonBoy closed this Sep 27, 2016
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.

None yet

1 participant