Skip to content

Consider tests demonstrating a runtime null reference exception when iterating over null. #80838

@CyrusNajmabadi

Description

@CyrusNajmabadi

d46a551 introduced many new tests that demonstrate that it's ok to iterate over a constant null value (though not the null-literal itself). It would be good if the tests that were updated (or added) that have no diagnostics also executed the code and validating that a null-ref exception is thrown.

Metadata

Metadata

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions