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

Check if it's a target on every event so that we don't get lost #92

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

hibariya
Copy link
Contributor

@hibariya hibariya commented Nov 19, 2024

When we use the patterns: option and if the mod_name does not match, we skip to push it to the @stack on :call event. However, we are still accessing the @stack on other events even if the module actually does not match. This causes incorrect RBS generation. For example, with the current implementation, the return type of TraceMethodTest::CallsOtherModule.calls_other_module_method (in the test added here) will be Integer while the actual type is String. It's because the return value of M.new(0).a_ten was accidentally used due to this issue.

Copy link
Owner

@ksss ksss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GREAT! THANKS!

@ksss ksss merged commit 0bd2b94 into ksss:main Nov 20, 2024
3 checks passed
@ksss
Copy link
Owner

ksss commented Nov 20, 2024

@hibariya v1.17.0 has been released!

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.

2 participants