ballerina-dev-tools icon indicating copy to clipboard operation
ballerina-dev-tools copied to clipboard

[Bug]: Incorrect document generated for a record with multiple included records

Open TharmiganK opened this issue 1 year ago • 1 comments

Description

When we have included multiple private records in another record and call bal doc to generate the document, the generated document has two rest parameter types which are inferred from the private included records. But there should be only one rest parameter.

Steps to Reproduce

Sample Ballerina code:

type Record1 record {
    int a;
    string b;
};

type Record2 record {
    boolean c;
    string[] d;
};

public type Record record {
    *Record2;
    *Record1;
    float e;
};

The Generated record documentation: Screenshot 2024-02-16 at 10 23 59

Affected Version(s)

Ballerina SwanLake Update 8

OS, DB, other environment details and versions

No response

Related area

-> API Docs

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

TharmiganK avatar Feb 16 '24 04:02 TharmiganK