Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of the return: keyword in a function specification is not correctly implemented #2602

Open
Oldes opened this issue Jun 26, 2024 · 0 comments

Comments

@Oldes
Copy link
Owner

Oldes commented Jun 26, 2024

Having a function defined like:

fun: function [
    value [any-type!] "Some value"
    return: [block!]  "Some result"
][
    probe value
    return []
    ;; code bellow should be ignored!
    'ignore
]

Then code:

fun 23
;23
;== ignore ;<-- should be []

Also there is missing the return description text in the function's help:

USAGE:
     FUN value

DESCRIPTION:
     FUN is a function! value.

ARGUMENTS:
     value         [any-type!] Some value.

RETURNS:
     [block!]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant