Skip to content

[KerML] "construction expression" is not supported in SysIDE #14

Open
@BjBe82

Description

@BjBe82

Checklist before submitting a bug report

  • I have reviewed CONTRIBUTING.md document
  • I have done a quick search on the issue tracker to check if the bug report is not redundant

Context

Based on the "Kernel Modeling Language Version 1.0 Beta 2.6" chapter "7.4.9.4 Base Expressions" the instantiation of classes should be possible. But the example provided there shows errors in the SysIDE.

Note: Syntax has changed and now uses the "new" keyword: ... new Member(...) based on spec "Kernel Modeling Language Version 1.0 Beta 3"

Steps to reproduce the bug

Add the following to the editor:

private import ScalarValues::*;

class Member {
    feature firstName : String;
    feature lastName : String;
    feature memberNumber : Integer;
    feature sponsor : Member [0..1];
}
feature thisMember = Member("Jane", "Doe", 1234, null);
feature nextMember = Member(
    firstName = "John",
    lastName = "Doe",
    sponsor = thisMember,
    memberNumber = thisMember.memberNumber + 1
);

Current result

Error reported:
Image

Expected result

No errors.

Technical data

  • Operating system: Windows
  • Version of the repo: SysIDE Editor installed from marketplace - Published: 2023-01-26, 17:46:57 - Last Released: 2025-02-11, 12:24:09
  • VSCode version: 1.100.2

/label ~"bug report"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions