Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Syntax Error Bug #1405

Open
kugesan1105 opened this issue Oct 25, 2024 · 0 comments · May be fixed by #1412
Open

[Bug] Syntax Error Bug #1405

kugesan1105 opened this issue Oct 25, 2024 · 0 comments · May be fixed by #1412
Assignees
Labels
bug Something isn't working as expected. jaclang Issues related to jac programming language

Comments

@kugesan1105
Copy link
Collaborator

kugesan1105 commented Oct 25, 2024

Correct Syntax Example:

obj Shape {
    has :priv shape_type: ShapeType;

    has :protect radius: float,
        area: float;

    has name: str;
}

Unexpected Behavior:

obj Shape {
    has shape_type: ShapeType int; # It should generate syntax error but it does not 
                    #ShapeType int Interpreted as a Comparison Expression 
}

image

obj Shape {
   # has shape_type: ShapeType str;  #will genrate syntax error 
}

image

@kugesan1105 kugesan1105 added bug Something isn't working as expected. jaclang Issues related to jac programming language labels Oct 25, 2024
@ThakeeNathees ThakeeNathees self-assigned this Oct 28, 2024
@ThakeeNathees ThakeeNathees linked a pull request Oct 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected. jaclang Issues related to jac programming language
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants