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

[vim9script] add test_override('defcompile', 1) option #14553

Closed
errael opened this issue Apr 15, 2024 · 0 comments
Closed

[vim9script] add test_override('defcompile', 1) option #14553

errael opened this issue Apr 15, 2024 · 0 comments

Comments

@errael
Copy link
Contributor

errael commented Apr 15, 2024

I'm doing some refactoring on a vim9script project that uses several files. I'm thinking of adding :defcompile to all the files temporarily to maximize checking.

While looking at import autoload I came across test_override('autoload', 1), which is good for testing script level references to possibly changed names/functions. But normal testing leaves some :def and :class unchecked.

If it's simple to do, with a defcompile option, the following

test_override('autoload', 1)
test_override('defcompile', 1)

would do a lot of checking, even for functions/methods that are only used in specialized circumstances, like error handling. This provides a manual way to get part of #13156.

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

Successfully merging a pull request may close this issue.

1 participant