Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Dec 9, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? đź’– Please sponsor : )

gfraiteur and others added 9 commits November 13, 2025 09:24
…e.GetAspectInstancesAsync when aspect instance has successors
…ckport

Topic/2025.1/1183 aspect db backport
…e parameters

Reproduces the bug where RemoveReferenceNullableAnnotationsRewriterForSymbol
throws InvalidCastException when processing T? inside a generic type like
List<T?> where T is an unconstrained type parameter.

--Claude
Tests the IType path with an introduced method returning List<T?>.

--Claude
…nsRewriter

When processing T? where T is an unconstrained type parameter, the rewriter
incorrectly assumed it was Nullable<T> and tried to cast to INamedTypeSymbol.

Added check for ITypeParameterSymbol/ITypeParameter before the cast.
Also removed unnecessary #nullable enable from test files.

--Claude
Tests various scenarios with nullable type parameters:
- T? directly (not inside another generic)
- T?[] array
- (T?, string) tuple
- Dictionary<string, List<T?>> nested generics

--Claude
Fix #1231: InvalidCastException with nullable type parameters in typeof
@pull pull bot locked and limited conversation to collaborators Dec 9, 2025
@pull pull bot merged commit a662dd1 into ehtick:release/2025.1 Dec 9, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants