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] HTTP compiler does not report error for returning record with object #4045

Closed
TharmiganK opened this issue Feb 7, 2023 · 1 comment
Assignees
Labels
Area/CompilerPlugin module/http Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/PCM Protocol connector packages related issues Type/Bug
Milestone

Comments

@TharmiganK
Copy link
Contributor

Description:
$Subject

Steps to reproduce:

Run the following code

public type Record record {|
    http:Request req;
    string path;
|};

service on new http:Listener(9090) {

    resource function 'default hi(http:Request req) returns Record {
        Record rec = {req: req, path: "hi"};
        return rec;
    }
}

Affected Versions:

Ballerina SwanLake 2201.3.x

@TharmiganK TharmiganK added Type/Bug module/http Team/PCM Protocol connector packages related issues labels Feb 7, 2023
@TharmiganK TharmiganK self-assigned this Mar 7, 2023
@TharmiganK TharmiganK added the Reason/EngineeringMistake The issue occurred due to a mistake made in the past. label Mar 16, 2023
@TharmiganK
Copy link
Contributor Author

Closing this issue since this is fixed with the compiler plugin rewrite

@TharmiganK TharmiganK added this to the 2201.5.0 milestone Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/CompilerPlugin module/http Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/PCM Protocol connector packages related issues Type/Bug
Projects
Archived in project
Development

No branches or pull requests

1 participant