Open kugesan1105 opened 1 month ago
obj Shape { has :priv shape_type: ShapeType; has :protect radius: float, area: float; has name: str; }
obj Shape { has shape_type: ShapeType int; # It should generate syntax error but it does not #ShapeType int Interpreted as a Comparison Expression }
obj Shape { # has shape_type: ShapeType str; #will genrate syntax error }
Correct Syntax Example:
Unexpected Behavior: