Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Fix functions with code block body #1

Open
WilliamRagstad opened this issue Jan 27, 2022 · 0 comments
Open

Fix functions with code block body #1

WilliamRagstad opened this issue Jan 27, 2022 · 0 comments
Labels
× bug Something isn't working ♥︎ good first issue Good for newcomers # prioritize Issues that are more urgent than others

Comments

@WilliamRagstad
Copy link
Member

WilliamRagstad commented Jan 27, 2022

Problem

Running

func(int e) = {e2 = e + 12; e2 * 2}

Throws the following error Parse error at line 1 column 2: Unexpected LeftParen token. Expected parameter identifier type.

Solution

Add support for function block bodies

@WilliamRagstad WilliamRagstad added the × bug Something isn't working label Jan 27, 2022
@WilliamRagstad WilliamRagstad added # prioritize Issues that are more urgent than others ♥︎ good first issue Good for newcomers labels Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
× bug Something isn't working ♥︎ good first issue Good for newcomers # prioritize Issues that are more urgent than others
Projects
None yet
Development

No branches or pull requests

1 participant