ballerina-lang
ballerina-lang copied to clipboard
Issues in errors logged for invalid completion types in stream type-descriptors
trafficstars
Description: $title.
Steps to reproduce:
public function main() {
// error is not logged
stream<int, int> x;
// 1. error doesn't include nil
// 2. error is logged for the RHS expression and not the type-descriptor
// `type 'int' not allowed here; expected an 'error' or a subtype of 'error'.`
stream<int, int> y = new;
}
Affected Versions: 2201.1.0