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

TC and compiler should support common keyword parameters in multiple data declarations #760

Closed
PaulKlint opened this issue Jan 20, 2015 · 0 comments

Comments

@PaulKlint
Copy link
Member

One of the recently introduced changes regarding keyword parameters is the handling of common keyword parameters in data declarations: all common keyword parameters apply to all constructors, even if the declaration is spread across several data declarations. For example, m().a should have a value given the following declarations

data L(int a = 1, int b = 2 * a) = l(int c = 2 * b);
data L(int d = -1) = m(); 

The relevant tests can be found in: lang::rascal::tests::functionality::KeywordParameterImportTests.

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

No branches or pull requests

2 participants