-
Notifications
You must be signed in to change notification settings - Fork 744
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]: Bad type on operand stack error when readonly table is returned #40376
Comments
As a workaround, type Customer record {|
readonly int id;
readonly string name;
int noOfItems;
|};
isolated table<Customer> key(id) customerTable = table [];
public function main() {
_ = getApiKeywords();
}
isolated function getApiKeywords() returns table<Customer> key(id) {
lock {
return customerTable.cloneReadOnly();
}
}
|
In the
In the
|
Seems like the return value of the |
Had a discussion with @HindujaB and sees like the issue is having in the runtime side. |
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. |
Description
Stacktrace:
Steps to Reproduce
No response
Affected Version(s)
v2201.5.0
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
The text was updated successfully, but these errors were encountered: