Skip to content

(cont) Add support for deferred closer functions which are not methods#34

Merged
ryanrolds merged 1 commit intoryanrolds:mainfrom
vanntile:main
Nov 4, 2023
Merged

(cont) Add support for deferred closer functions which are not methods#34
ryanrolds merged 1 commit intoryanrolds:mainfrom
vanntile:main

Conversation

@vanntile
Copy link
Copy Markdown
Contributor

@vanntile vanntile commented Nov 3, 2023

This is a fix PR relating to #33 - empty return functions would be assumed to prime handling the closing of rows statements. This is obviously only true if the return instruction's results include one of the relevant types.

As a result, deferred functions which do not close the initial statement would pass without a linter error. I have added a test to verify this case outputs an error.

This probably completes the issue #7

@ryanrolds ryanrolds merged commit cae41ab into ryanrolds:main Nov 4, 2023
@ryanrolds
Copy link
Copy Markdown
Owner

Thank you.

@vanntile
Copy link
Copy Markdown
Contributor Author

vanntile commented Nov 4, 2023

Thank you for being responsive!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants