Skip to content

SemanitModel.GetTypeInfo returns null Type on ObjectCreationExpressionSyntax.Type #78783

@tmat

Description

@tmat

I'd expect the type symbol to be resolved.

var objCreation = (ObjectCreationExpressionSyntax)...;
var typeInfo = semanticModel.GetTypeInfo(objCreation.Type);

typeInfo.Type is null

Metadata

Metadata

Assignees

Labels

4 - In ReviewA fix for the issue is submitted for review.Area-Compilershelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on ituntriagedIssues and PRs which have not yet been triaged by a lead

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions