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

fix: wrong the detection method of nilable #375

Merged
merged 1 commit into from
Jun 29, 2022
Merged

Conversation

orisano
Copy link
Contributor

@orisano orisano commented Jun 29, 2022

fix #339

isNilable didn't consider the case where typ is a direct interface.
So, the number of dereferencing is not correct and the function is called with an incorrect receiver address, resulting in panic.

@codecov-commenter
Copy link

Codecov Report

Merging #375 (2ea7ab6) into master (3fdc55a) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #375      +/-   ##
==========================================
- Coverage   79.95%   79.90%   -0.06%     
==========================================
  Files          52       52              
  Lines       17555    17561       +6     
==========================================
- Hits        14036    14032       -4     
- Misses       2951     2960       +9     
- Partials      568      569       +1     

@goccy
Copy link
Owner

goccy commented Jun 29, 2022

Thank you for contribution !! LGTM

@goccy goccy merged commit 6726210 into goccy:master Jun 29, 2022
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.

crashed by anonymous structure field
3 participants