ballerina-platform / module-ballerinax-azure.functions

The implementation of Azure Functions compiler extension for Ballerina.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Values does not contain annotations when variable assignment is used to return statement

xlight05 opened this issue · comments

Description:
$Subject. We need to add a code modifier to transform x into [...x].

Steps to reproduce:

    resource function get multiout/val() returns [@af:HttpOutput string, @af:QueueOutput{queueName: "queue3"} string] {
        [string, string] x = ["hello", "world"];
        return x;
    }

Affected Versions:

OS, DB, other environment details and versions:

Related Issues (optional):

Suggested Labels (optional):

Suggested Assignees (optional):

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.