Skip to content

typed variable declaration allows malformed syntax #245

@x87

Description

@x87

#32

int int int
int = x
int = float
int 0 <------------- this is sick. the compiler will replace any 0 in code with the variable
int x > 5

should error under the following rules:

  • variable name can not match reserved words
  • the type must be followed by a valid identifier (numbers or math symbols are not allowed)
  • only = is allowed in initialization part

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions