Named parameters not supported why not?

    function createParticipant(areaId: Text) returns Participant -> Participant(
        personalData = participantPersonalData,
        sapGp = optionalOf(""),
        gpType = ParticipantType.PERSON,
        contactDetails = participantContactDetails,
        domicileAddress = domicileAddress,
        areaId = areaId
    );

The error given is

NPL: Error: E0001: Syntax error: Named arguments not supported

The IDE lets me specify the named arguments and does not complain…

Pluin version is 2024.1.62+2025.1.9 the code is being compiled from a the branch ST-4716-update-party-dto_rebased_on_master

Hey @Sandy What is the definition of Participant?

protocol[pCorp, pZevManager] Participant(
    var personalData: ParticipantPersonalData,
    var sapGp: Optional<Text>,
    var gpType: ParticipantType,
    var contactDetails: ParticipantContactDetails,
    var domicileAddress: DomicileAddress,
    var areaId: Text
) {

I have rebased that branch against master

@Milos the error message is wrong and really misleading. The actual error was that the parties are missing from the protocol constructor

Thanks @Sandy . I will create a bug ticket to investigate and fix.