ballerina-lang icon indicating copy to clipboard operation
ballerina-lang copied to clipboard

Issues in errors logged for invalid completion types in stream type-descriptors

Open MaryamZi opened this issue 3 years ago • 14 comments
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

MaryamZi avatar Jun 20 '22 06:06 MaryamZi