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

Default values of fields and default values of defaultable function params of abstract objects are not available when referencing #18405

Closed
MaryamZi opened this issue Sep 1, 2019 · 1 comment
Labels
Priority/High Spec/2019R3 Related to Ballerina Spec 2019R3 Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/SpecDeviation

Comments

@MaryamZi
Copy link
Member

MaryamZi commented Sep 1, 2019

Description:
$title. Need to figure out how we can support the same.

#18404 disallows fields with default values in abstract objects for the timebeing.

The same cannot be done for functions, since the Listener abstract object's attach method has a defaultable parameter.

@MaryamZi MaryamZi added Priority/High Type/SpecDeviation Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. labels Sep 1, 2019
@pubudu91 pubudu91 added this to the Ballerina 1.1.0 milestone Oct 17, 2019
@pubudu91 pubudu91 added the Spec/2019R3 Related to Ballerina Spec 2019R3 label Oct 17, 2019
@pubudu91 pubudu91 removed this from the Ballerina 1.1.x milestone Mar 25, 2020
@MaryamZi
Copy link
Member Author

This is no longer an issue because inclusion only copies the type and the default values are not part of the type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority/High Spec/2019R3 Related to Ballerina Spec 2019R3 Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/SpecDeviation
Projects
None yet
Development

No branches or pull requests

3 participants