Skip to content

Fix #26069: nested type tests in generic object when conditions - #26079

Open
subotac wants to merge 1 commit into
nim-lang:develfrom
subotac:fix/nested-generic-is
Open

Fix #26069: nested type tests in generic object when conditions#26079
subotac wants to merge 1 commit into
nim-lang:develfrom
subotac:fix/nested-generic-is

Conversation

@subotac

@subotac subotac commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #26069.

Reset cached semantic state along paths to nested is expressions after generic type substitution, allowing regular is semantics to evaluate the concrete condition.

Add regression coverage for both object and non-object instantiations

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.

when not (T is object) doesn't work correctly in generic object

1 participant