Jaseci-Labs / jaseci

The Official Jaseci Code Repository
https://jaseci.org
156 stars 214 forks source link

[Bug] Syntax Error Bug #1405

Open kugesan1105 opened 1 month ago

kugesan1105 commented 1 month ago

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