Skip to content

fix: handle nil pointer stored in non-nil interface#2337

Closed
Restia-Ashbell wants to merge 1 commit intoMetaCubeX:Alphafrom
Restia-Ashbell:pr
Closed

fix: handle nil pointer stored in non-nil interface#2337
Restia-Ashbell wants to merge 1 commit intoMetaCubeX:Alphafrom
Restia-Ashbell:pr

Conversation

@Restia-Ashbell
Copy link

No description provided.

@wwqgtxx wwqgtxx closed this Nov 2, 2025
@Restia-Ashbell
Copy link
Author

Assigning nil struct pointer to interface gives the interface concrete type, which means it won’t be treated as nil during nil check.

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