Skip to content

Fix crash when accessing property TemplateTypeParmDecl.DefaultArgument - #528

Merged
tannergooding merged 1 commit into
dotnet:mainfrom
ceresgalax:bug_ttpd_da
Apr 4, 2025
Merged

Fix crash when accessing property TemplateTypeParmDecl.DefaultArgument#528
tannergooding merged 1 commit into
dotnet:mainfrom
ceresgalax:bug_ttpd_da

Conversation

@ceresgalax

Copy link
Copy Markdown
Contributor
  • getDefaultArgType() must not be called if hasDefaultArgType() returns false.
  • Since the type may not have a default arg type, make the property nullable.

* hasDefaultArgType() must be called first.
* Since the type may not have a default arg type, make the property nullable.
@tannergooding
tannergooding merged commit 0296dbf into dotnet:main Apr 4, 2025
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