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]: Compiler (BIROptimizer) crashes for raw template with interpolations when used as a default value of a parameter #43775

Open
MaryamZi opened this issue Jan 29, 2025 · 0 comments · May be fixed by #43799
Assignees
Labels
Priority/Blocker Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug

Comments

@MaryamZi
Copy link
Member

MaryamZi commented Jan 29, 2025

Description

$title.

Steps to Reproduce

type Employee record {|
    string firstName;
    string lastName;
|};

public type RT object {
    *object:RawTemplate;
    public string[] & readonly strings;
    public anydata[] insertions;
};

function fn(Employee e, RT fullName = `${e}`) {
}

Affected Version(s)

2201.11.0-SNAPSHOT

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

@MaryamZi MaryamZi added Priority/Blocker Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug labels Jan 29, 2025
@gimantha gimantha moved this to In Progress in Ballerina Team Main Board Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority/Blocker Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. Type/Bug
Projects
Status: In Progress
2 participants