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

[Bug]: Invalid suggestions for boolean values in VSCode

Open SasinduDilshara opened this issue 1 year ago • 1 comments

Description

Please consider the following code

type A record{
    boolean a;
};

A a = {a:<CURSOR>};

function test() {

}

The suggestions given by the LS is as follows

In here the first suggestion a is not defined in the scope. The second suggestion test() is not returning a boolean.

Screenshot 2024-02-20 at 12 05 50 (2)

Steps to Reproduce

No response

Affected Version(s)

No response

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

SasinduDilshara avatar Feb 20 '24 06:02 SasinduDilshara

Duplicate of #36675

mindula avatar Feb 26 '24 05:02 mindula