Skip to content

Improve return types for ExprExpression and ExprChangeValue#157

Merged
sovdeeth merged 3 commits into2.xfrom
patch/expression-return-types
Feb 1, 2026
Merged

Improve return types for ExprExpression and ExprChangeValue#157
sovdeeth merged 3 commits into2.xfrom
patch/expression-return-types

Conversation

@APickledWalrus
Copy link
Copy Markdown
Member

@APickledWalrus APickledWalrus commented Jan 2, 2026

This pull request aims to improve the return types for ExprExpression and ExprChangeValue. On Skript 2.14, they do not work well with property syntax. They use the outdated (and potentially dangerous) approach of typing themselves. This causes unexpected behavior, such as property syntaxes not working with expressions that should be supported.

To resolve this, I have rewritten both of the expressions. For now, only use as Object return type as the current setup prevents determining this information without more significant changes (and it won't really have a big impact)

@APickledWalrus APickledWalrus added the bug Something isn't working label Jan 2, 2026
@sovdeeth sovdeeth merged commit 283a169 into 2.x Feb 1, 2026
2 checks passed
@sovdeeth sovdeeth deleted the patch/expression-return-types branch February 1, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants