8000 Using "return X" in assignment functions leads to ParseError · Issue #354 · evhub/coconut · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Using "return X" in assignment functions leads to ParseError #354
Closed
@ArneBachmann

Description

@ArneBachmann

It should give a clearer message, took me half an hour to spot the error.

def f(a) =
  x = 1
  return 2

Removing the return solves it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0