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

[Bug]: Incorrect type name for immutable types in error messages #38505

Closed
rdulmina opened this issue Nov 1, 2022 · 2 comments · Fixed by #41169
Closed

[Bug]: Incorrect type name for immutable types in error messages #38505

rdulmina opened this issue Nov 1, 2022 · 2 comments · Fixed by #41169
Assignees
Labels
Area/Diagnostics Issues related Diagnostics reported by the Compiler. #Compiler Planning/SwanLakeDump All issues planned for Swan Lake GA release Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug
Milestone

Comments

@rdulmina
Copy link
Contributor

rdulmina commented Nov 1, 2022

Description

function testInvalidReaodOnlyRecordUpdates() {
    Student & readonly b = {};
    b["details"] = 3;
}

public type Student record {|
    int details = 5;
|};

public type ReadOnlyStudent readonly & Student;

Gives cannot update 'readonly' value of type 'ReadOnlyStudent' ideally it should give cannot update 'readonly' value of type '(Student & readonly)'. This is because we maintain symTable.immutableTypeMaps. Need to revisit this

Steps to Reproduce

No response

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related area

-> Compilation

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@rdulmina rdulmina added Type/Bug Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. labels Nov 1, 2022
@gimantha gimantha added Area/Diagnostics Issues related Diagnostics reported by the Compiler. #Compiler Area/TypeChecker Type Checker related issues #Compiler Planning/SwanLakeDump All issues planned for Swan Lake GA release and removed Area/TypeChecker Type Checker related issues #Compiler labels Nov 8, 2022
@pcnfernando
Copy link
Member

@github-actions
Copy link

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.

@rdulmina rdulmina added this to the 2201.8.0 milestone Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/Diagnostics Issues related Diagnostics reported by the Compiler. #Compiler Planning/SwanLakeDump All issues planned for Swan Lake GA release Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug
Projects
None yet
3 participants