Open
Description
Description
$title, when used as a default value of a parameter (therefore within parenthesis).
We might run into this often with with upcoming changes to use raw templates as default values for prompts.
Steps to Reproduce
isolated function fn(string c = string`
- (AI in healthcare)?
`) returns int|error = external;
public function main() returns error? {
string[] & readonly first = [];
}

When the closing parenthesis within the template is removed
isolated function fn(string c = string`
- (AI in healthcare?
`) returns int|error = external;
public function main() returns error? {
string[] & readonly first = [];
}

Version
4.7.9
Environment Details (with versions)
No response