Skip to content

fix: preserve nil pointer types in Get() method#397

Merged
knadh merged 1 commit intoknadh:masterfrom
Asakuri:fix
Jan 25, 2026
Merged

fix: preserve nil pointer types in Get() method#397
knadh merged 1 commit intoknadh:masterfrom
Asakuri:fix

Conversation

@Asakuri
Copy link
Contributor

@Asakuri Asakuri commented Jan 24, 2026

  • Changed Get() to return the original nil pointer value instead of untyped nil, preserving the pointer's type information
  • Added type assertions in TestGetNilPointer to verify the returned nil values maintain their original types (*test, *[]string)

- Changed Get() to return the original nil pointer value instead of
  untyped nil, preserving the pointer's type information
- Added type assertions in TestGetNilPointer to verify the returned
  nil values maintain their original types (*test, *[]string)
@knadh knadh merged commit ec91994 into knadh:master Jan 25, 2026
3 checks passed
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