ballerina-lang icon indicating copy to clipboard operation
ballerina-lang copied to clipboard

[Task]: Generate `new typedesc` instruction for record and tuple when `type descriptor` resolving

Open chiranSachintha opened this issue 2 years ago • 1 comments
trafficstars

Description

In the current implementation, new typedesc instruction generates when value is created. When considering the following example. we create two new typedesc instructions for record{int k = 10;} type.

function foo() {
    record{int k = 10;} m;
    m = {};
    m = {k: 15};
}

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 avatar Nov 28 '22 06:11 chiranSachintha