Open heshanpadmasiri opened 1 year ago
Same with
type Book record {
readonly int id;
};
type BookUpdate record {
};
function update(function (Book) returns BookUpdate? fn) returns error? {
stream<Book, error?> bookStr = new;
[int, BookUpdate][] ids = check from Book book in bookStr
let BookUpdate? update = fn(book)
where update !is ()
select [book.id, update];
foreach [int, BookUpdate] [id, bookUpdate] in ids {
}
}
Seems to have been fixed now.
Description
Given a list of function values, if you try to call them inside a query expression (to create a list of return values) you get a java null pointer exception.
Steps to Reproduce
Trying to compile the above code results in
Affected Version(s)
2201.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