Skip to content

[Data Mapper] Diagnostics are not visible when mapping constructors contain invalid values #462

Open
@madushajg

Description

@madushajg

Description:
$Subject
Screenshot 2023-04-11 at 20 17 22

Steps to reproduce:
Sample source:

type Car record {
    SUV vehicle;
};

type SUV record {
    string model;
    int year;
};

type HighEndCar record {|
    Model model;
    int year;
|};

type Model record {
    string transmission;
    string engine;
};

function tnf(Car car) returns HighEndCar => {
    year: 0,
    model: "invalid-value"
};

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions