Open dulajdilshan opened 1 year ago
The following scenario resolved by the closure PR https://github.com/ballerina-platform/ballerina-lang/pull/40579
public function main() {
int a;
int b;
int c;
var f = function () returns record {|int a; int b;|} => {a: 1, b: 2};
[{a, b}, {c}] = [f()];
}
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.
May all be fixed now.
Description
$title
Steps to Reproduce
Try running the following codes with
bal run
scene 1:
scene 2 (Currently this shows incorrect errors, and it will be fixed in https://github.com/ballerina-platform/ballerina-lang/pull/40283):
Affected Version(s)
2201.7.0 at least
OS, DB, other environment details and versions
Ubuntu 22.04
Related area
-> Runtime
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response