We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default
Checklist for implementation of https://github.com/dotnet/csharplang/blob/master/proposals/target-typed-default.md
/langversion
GetSymbolInfo
GetSpeculativeSymbolInfo
GetTypeInfo
GetSpeculativeTypeInfo
GetConstantValue
AnalyzeDataFlow
ClassifyConversion
CancellationToken ct = default
params
F(params T[] args)
F(default)
F(null, default)
yield return default;
$"{default}"
F(dynamic d)
if (default) { }
switch (default) { }
switch (e) { case default: }
switch (e1) { case e2 when (default): }
while (default) { }
do { } while (default)
for (; default; ) { }
foreach (... in default) { }
throw default;
return default;
try { } catch (e) when (default) { }
lock (default) { }
using (default) { }
fixed (byte* p = default) { }
this = default;
struct
default.F
default()
default[i]
a[default]
nameof(default)
checked(default)
unchecked(default)
checked(default + x)
op default
!default
e op default
default op e
default == false
new S() == default
struct S
operator==
S
S?
default + x
default ? e1 : e2
e1 ? default : e2
default ?? e
e ?? default
(T)default
x op= default
x += default
*default
&default
default->F
default is e
e is default
await default
__refvalue(default, T)
_reftype(default)
__makeref(default)
F(Func<T> f)
F(Action a)
F(() => default)
DefaultOrNullLiteralConversion
select default
F(int i)
F(string s)
F(Task<T> t)
F(ValueTask<T> t)
F(async () => default)
WRN_IsAlwaysTrue
WRN_IsAlwaysFalse
WRN_AlwaysNull
__arglist
F(object o, __arglist)
default(
default.
default[
[DebuggerDisplay("...")]
The text was updated successfully, but these errors were encountered:
See #18717
Sorry, something went wrong.
Compiler Test Plan
No branches or pull requests
Test plan for
default
Checklist for implementation of https://github.com/dotnet/csharplang/blob/master/proposals/target-typed-default.md
General concerns
/langversion
GetSymbolInfo
GetSpeculativeSymbolInfo
GetTypeInfo
GetSpeculativeTypeInfo
GetConstantValue
AnalyzeDataFlow
ClassifyConversion
Type and members
CancellationToken ct = default
params
:F(params T[] args)
:F(default)
andF(null, default)
params
and non-params
, mixed value/reference typesyield return default;
$"{default}"
F(dynamic d)
:F(default)
Code
if (default) { }
switch (default) { }
switch (e) { case default: }
switch (e1) { case e2 when (default): }
while (default) { }
,do { } while (default)
for (; default; ) { }
foreach (... in default) { }
throw default;
return default;
try { } catch (e) when (default) { }
lock (default) { }
using (default) { }
fixed (byte* p = default) { }
yield return default;
this = default;
instruct
.ctordefault.F
default()
default[i]
a[default]
nameof(default)
checked(default)
,unchecked(default)
,checked(default + x)
op default
!default
e op default
,default op e
default == false
new S() == default
forstruct S
with/withoutoperator==
,default
has typeS
notS?
default + x
with user-defined operator or conversiondefault ? e1 : e2
,e1 ? default : e2
default ?? e
,e ?? default
(T)default
x op= default
x += default
with user-defined operator or conversion*default
,&default
,default->F
default is e
,e is default
await default
__refvalue(default, T)
,_reftype(default)
,__makeref(default)
F(Func<T> f)
,F(Action a)
:F(() => default)
DefaultOrNullLiteralConversion
select default
F(int i)
,F(string s)
:F(default)
F(Task<T> t)
,F(ValueTask<T> t)
:F(async () => default)
WRN_IsAlwaysTrue
,WRN_IsAlwaysFalse
,WRN_AlwaysNull
__arglist
:F(object o, __arglist)
:F(null, default)
IDE
default(
,default.
,default[
Debugger / EE
[DebuggerDisplay("...")]
The text was updated successfully, but these errors were encountered: