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

[Task]: Intersection of readonly and record type with defaults #41220

Closed
chiranSachintha opened this issue Aug 16, 2023 · 0 comments
Closed

[Task]: Intersection of readonly and record type with defaults #41220

chiranSachintha opened this issue Aug 16, 2023 · 0 comments
Assignees
Labels
Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Task userCategory/Compilation

Comments

@chiranSachintha
Copy link
Member

Description

Task 1
For more details please refer ballerina-platform/ballerina-spec#544

As we currently allow only intersections with read-only type, we have fixed the above issue for those specific scenarios through the implementation of the PR.

So as an example, with the above PR we have disallowed the following kinds of scenarios

type Foo1 record {|
    any[] x = [1, 2];
|};

function value() {
    Foo1 & readonly _ = {};
}

After allowing other intersections we need to fix those as well.

Describe your task(s)

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@chiranSachintha chiranSachintha added Type/Task Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. labels Aug 16, 2023
@ballerina-bot ballerina-bot added the needTriage The issue has to be inspected and labeled manually label Aug 16, 2023
@MaryamZi MaryamZi removed the needTriage The issue has to be inspected and labeled manually label Oct 26, 2023
@chiranSachintha chiranSachintha added the Reason/EngineeringMistake The issue occurred due to a mistake made in the past. label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Task userCategory/Compilation
Projects
None yet
Development

No branches or pull requests

3 participants