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

Linters: cast_to_specific_SNodeType should exclude casts from Object #18

Open
alexanderpann opened this issue Aug 28, 2023 · 1 comment

Comments

@alexanderpann
Copy link
Member

Example: context.session object [ "myNode" ] returns an object but contains a node. IMO, the Java-style cast is acceptable in this case.
As a workaround to satisfy the linter, I can only type: node<> myNode = context.session object [ "myNode" ] as SNode and than do the cast.

@alexanderpann
Copy link
Member Author

A fix doesn't seem to be possible at the moment because the necessary typesystem information is not available.

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

No branches or pull requests

1 participant