Skip to content

Fix empty for DefaultDictBase - #1004

Merged
oxinabox merged 2 commits into
JuliaCollections:masterfrom
SAY-5:fix-defaultdictbase-empty
Nov 26, 2026
Merged

oxinabox merged 2 commits into
JuliaCollections:masterfrom
SAY-5:fix-defaultdictbase-empty

Conversation

@SAY-5

@SAY-5 SAY-5 commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

empty(::DefaultDictBase) called the constructor with only {K,V,F}, but the struct has four type parameters, so it threw a MethodError. It now passes D through as well, and the test checks the result type and that passkey is kept.

Closes #1001.

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
@oxinabox

Copy link
Copy Markdown
Member

Can you update the change log also please?

Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
@SAY-5

SAY-5 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Added it under a new [Unreleased] section, and bumped the Unreleased compare link to start from v0.19.7 so it points at the right range.

@oxinabox
oxinabox merged commit de00b76 into JuliaCollections:master Nov 26, 2026
12 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.

empty(::DefaultDictBase) throws MethodError

2 participants