dotnet / dotnet/csharpstandard

12.6.2.3 Check type initialization for default arguments

Open
#151 3 comments 0 reactions 0 assignees View on GitHub
type: clarity
Dominant language
C#
Stars
815
Forks
99
Avg merge
1d 14h
Merged PRs (30d)
16

Description

The question is: if a type with a static constructor is used as an optional parameter and not specified by the caller, is the type initialized?

Split off from ECMA-TC49-TG2/spec#285 so we can get that proposal "in", but defer this extra work.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.