Skip to content

SA1000 ignores 'default' in a default literal expression #2420

Open
@sharwell

Description

@sharwell

Currently SA1000 is getting reported for the following C# 7.1 syntax:

var x = value == null ? default : 3;

Edit: a workaround is now implemented to simply ignore default literal expressions. The bug has a new title for providing full support for this keyword.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions