Skip to content

Tuple parsing error #2398

@jayrulez

Description

@jayrulez
```{
	float VelocityX;
	float VelocityY;

	 //BUG: This fails to compile — parser sees "VelocityY * dt" as a var decl
	 /*public (float dx, float dy) Broken(float dt) mut
	 {
	     return (VelocityX * dt, VelocityY * dt);
	 }*/

	// WORKAROUND: Use locals
	public (float dx, float dy) Working(float dt) mut
	{
		float dx = VelocityX * dt;
		float dy = VelocityY * dt;
		return (dx, dy);
	}
}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions