Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

[BUG] Edge attribute assignment without default #361

Open
kugesan1105 opened this issue May 6, 2024 · 0 comments
Open

[BUG] Edge attribute assignment without default #361

kugesan1105 opened this issue May 6, 2024 · 0 comments
Assignees

Comments

@kugesan1105
Copy link
Collaborator

Issue

  • Unable to create edge with attribute value assignment when attribute has no default value.

To Reproduce

node node_a {
    has val: int;
}

edge Edge_a {
    # has value2: int ;      
    has value2: int = 30;
}


with entry {

    root +:Edge_a:value2=30:+> (node_a(val=9));
    print([root-:Edge_a:->]);

}

Description
When creating an edge with attribute value assignment, but the attribute has no default value defined, an error occurs. Assigning values to attributes without defaults should be allowed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants