Skip to content
New issue

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

Merges/main to features/generic attributes #54953

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
f1df660
Add async modifier on await completion
Youssef1313 Oct 6, 2020
60f8850
Localize and sealed
Youssef1313 Mar 6, 2021
447f01f
Fixes
Youssef1313 Mar 6, 2021
5938d3d
Use GetRequiredSemanticModelAsync instead
Youssef1313 Mar 6, 2021
73f43bb
Update CompletionProviderOrderTests.cs
Youssef1313 Mar 6, 2021
854945e
Merge branch 'main' into await-completion
Youssef1313 Mar 20, 2021
994932f
Make single completion provider for await
Youssef1313 Mar 25, 2021
1902c94
Tests
Youssef1313 Mar 25, 2021
39a17aa
Remove #nullable disable
Youssef1313 Mar 25, 2021
a39c348
Tests and not use field in completion provider
Youssef1313 Mar 25, 2021
50ca76e
Introduce a language service to share common code
Youssef1313 Mar 26, 2021
36b1ac8
Comments
Youssef1313 Mar 26, 2021
a5eeb67
Clean tests
Youssef1313 Mar 26, 2021
0431d4a
Fix NRE
Youssef1313 Mar 26, 2021
71cce7f
Fix
Youssef1313 Mar 30, 2021
c4aa2bb
Address feedback
Youssef1313 Mar 31, 2021
8cfc8f9
Test glyph and inline description in unit tests
Youssef1313 Mar 31, 2021
45a9f6b
Support anonymous functions
Youssef1313 Mar 31, 2021
77bf329
Fix
Youssef1313 Mar 31, 2021
0caf239
Rename test class
Youssef1313 Mar 31, 2021
61a0823
Fix failing test
Youssef1313 Mar 31, 2021
2f68771
Fix TestCompletionProviderOrderMetadata
Youssef1313 Mar 31, 2021
408eed7
Move to KnownTaskTypes
Youssef1313 Apr 1, 2021
60b0f5a
Merge branch 'main' into await-completion
Youssef1313 Apr 22, 2021
6a8534e
Merge branch 'main' into await-completion
Youssef1313 Apr 25, 2021
bf2ccad
Fix
Youssef1313 May 4, 2021
4626e1c
Merge remote-tracking branch 'upstream/main' into await-completion
Youssef1313 May 4, 2021
2ba5069
Only cascade in the initial project when performing a FAR operation.
CyrusNajmabadi May 5, 2021
b344b97
Pass in callback for finders to test equality with
CyrusNajmabadi May 5, 2021
af1f922
Add match function
CyrusNajmabadi May 5, 2021
b581185
Address feedback: override the public overload
Youssef1313 May 6, 2021
2f921c3
Add async regardless return type
Youssef1313 May 6, 2021
a4b7a01
Update VisualBasicMakeMethodSynchronousCodeFixProvider.vb
Youssef1313 May 6, 2021
cf21c76
Update VisualBasicMakeMethodAsynchronousCodeFixProvider.vb
Youssef1313 May 6, 2021
f82655c
Fix
Youssef1313 May 6, 2021
6324aba
Fix test
Youssef1313 May 6, 2021
d501fee
Fix tests
Youssef1313 May 6, 2021
9204341
Fix test
Youssef1313 May 6, 2021
d48175c
Merge remote-tracking branch 'upstream/main' into await-completion
Youssef1313 May 7, 2021
c5f219a
Handle trivia
Youssef1313 May 7, 2021
de41203
Fix
Youssef1313 May 7, 2021
f4bcff7
Fix
Youssef1313 May 7, 2021
7546e52
Fix
Youssef1313 May 7, 2021
ee6d1cc
Merge branch 'main' into await-completion
Youssef1313 Jun 20, 2021
2e2f041
Address feedback
Youssef1313 Jun 30, 2021
d259bc9
Merge remote-tracking branch 'upstream/main' into await-completion
Youssef1313 Jun 30, 2021
a376f7c
Handle explicit lambda return type
Youssef1313 Jun 30, 2021
4562f93
Merge remote-tracking branch 'upstream/main' into farOrder
CyrusNajmabadi Jul 5, 2021
260ad6f
Initial algorithm
CyrusNajmabadi Jul 6, 2021
cc1e7f4
No need for up
CyrusNajmabadi Jul 6, 2021
3ea8c77
Building
CyrusNajmabadi Jul 6, 2021
60d3f42
Building
CyrusNajmabadi Jul 6, 2021
50d3dc1
Report definition
CyrusNajmabadi Jul 6, 2021
72a2ba2
Only same kinds allowed
CyrusNajmabadi Jul 6, 2021
0440705
About to do definitions
CyrusNajmabadi Jul 6, 2021
3432954
in progress
CyrusNajmabadi Jul 6, 2021
3856dfc
Fixups
CyrusNajmabadi Jul 7, 2021
79e288c
Remove isMatch
CyrusNajmabadi Jul 7, 2021
5ed6e6a
Merge branch 'farRefactorings2' into farOrder2
CyrusNajmabadi Jul 7, 2021
d45a027
Merge branch 'farRefactorings2' into farOrder2
CyrusNajmabadi Jul 7, 2021
2b9ef2c
Merge branch 'farRefactoring4' into farOrder2
CyrusNajmabadi Jul 7, 2021
4ff359b
far work
CyrusNajmabadi Jul 7, 2021
204c1b7
project queue
CyrusNajmabadi Jul 7, 2021
68f95b0
INheritance
CyrusNajmabadi Jul 7, 2021
44962d9
inheritance
CyrusNajmabadi Jul 7, 2021
281a7ce
working
CyrusNajmabadi Jul 7, 2021
24cccbc
reorder
CyrusNajmabadi Jul 7, 2021
4446029
missing unwrap
CyrusNajmabadi Jul 7, 2021
c1081a6
All but 4
CyrusNajmabadi Jul 8, 2021
fa42b69
Delete files
CyrusNajmabadi Jul 8, 2021
f1b8d27
Break out types
CyrusNajmabadi Jul 8, 2021
4ee5a96
Delete file
CyrusNajmabadi Jul 8, 2021
0004eff
Simplify
CyrusNajmabadi Jul 8, 2021
5733e93
Failing more
CyrusNajmabadi Jul 8, 2021
38c037f
All passing
CyrusNajmabadi Jul 8, 2021
97f25a8
Rename
CyrusNajmabadi Jul 8, 2021
90cb5de
make private
CyrusNajmabadi Jul 8, 2021
8aebfe4
add comment
CyrusNajmabadi Jul 8, 2021
b036d21
Simplify
CyrusNajmabadi Jul 8, 2021
d45275f
Simplify
CyrusNajmabadi Jul 8, 2021
f5c00cc
Simplify
CyrusNajmabadi Jul 8, 2021
c732d81
Move code
CyrusNajmabadi Jul 8, 2021
ca01ea3
revert
CyrusNajmabadi Jul 8, 2021
3227f24
Remove
CyrusNajmabadi Jul 8, 2021
ad380ad
Simplify
CyrusNajmabadi Jul 8, 2021
e31e660
Merge remote-tracking branch 'upstream/main' into farOrder2
CyrusNajmabadi Jul 8, 2021
a485c67
Simplify
CyrusNajmabadi Jul 8, 2021
ed1822f
Simplify
CyrusNajmabadi Jul 8, 2021
e5f29a7
Simplify
CyrusNajmabadi Jul 8, 2021
046aea7
remove
CyrusNajmabadi Jul 8, 2021
4eb04b6
remove
CyrusNajmabadi Jul 8, 2021
f65d930
remove
CyrusNajmabadi Jul 8, 2021
5f6aaa2
remove
CyrusNajmabadi Jul 8, 2021
5f59bf9
remove
CyrusNajmabadi Jul 8, 2021
4e7b632
remove
CyrusNajmabadi Jul 8, 2021
de9b472
remove
CyrusNajmabadi Jul 8, 2021
387adac
remove
CyrusNajmabadi Jul 8, 2021
7a448f6
remove
CyrusNajmabadi Jul 8, 2021
346c24e
remove
CyrusNajmabadi Jul 8, 2021
f9cf008
remove
CyrusNajmabadi Jul 8, 2021
e8ac981
Always map symbols
CyrusNajmabadi Jul 8, 2021
abcc9da
Always report symbols
CyrusNajmabadi Jul 8, 2021
f1427ab
remove
CyrusNajmabadi Jul 8, 2021
a5b9fbd
update docs
CyrusNajmabadi Jul 8, 2021
16206a8
Update docs
CyrusNajmabadi Jul 8, 2021
86f0d4e
Update docs
CyrusNajmabadi Jul 8, 2021
c659fb1
Update docs
CyrusNajmabadi Jul 8, 2021
945019e
cleanup
CyrusNajmabadi Jul 8, 2021
3d8dd9e
docs
CyrusNajmabadi Jul 8, 2021
961bf6a
docs
CyrusNajmabadi Jul 8, 2021
c452e45
Update
CyrusNajmabadi Jul 8, 2021
c1a6d5a
Update
CyrusNajmabadi Jul 8, 2021
1308b85
Update
CyrusNajmabadi Jul 8, 2021
8331324
Update
CyrusNajmabadi Jul 8, 2021
31f407d
Update
CyrusNajmabadi Jul 8, 2021
766dff1
Update
CyrusNajmabadi Jul 8, 2021
5476a28
Update
CyrusNajmabadi Jul 8, 2021
934c1a3
simplify
CyrusNajmabadi Jul 8, 2021
952e0a5
Move to extensions
CyrusNajmabadi Jul 8, 2021
3e4ff01
Add docs
CyrusNajmabadi Jul 8, 2021
ccb6f9e
Process documents in parallel
CyrusNajmabadi Jul 8, 2021
4043f4a
Docs
CyrusNajmabadi Jul 8, 2021
4816f97
Enable CA2012 (Use ValueTasks correctly)
sharwell Jul 8, 2021
8f85b57
Fix tests
Youssef1313 Jul 9, 2021
ecda358
Use Forget instead of Preserve for clarity
sharwell Jul 12, 2021
f4e2b8d
Merge remote-tracking branch 'upstream/main' into farOrder2
CyrusNajmabadi Jul 12, 2021
8ae083d
Remove redundant work
CyrusNajmabadi Jul 12, 2021
33c5752
Rename parameters
CyrusNajmabadi Jul 12, 2021
4f286e7
make both methods static
CyrusNajmabadi Jul 12, 2021
9d97364
don't log file name
CyrusNajmabadi Jul 12, 2021
620b498
rename
CyrusNajmabadi Jul 12, 2021
6e5cf07
Merge pull request #54697 from sharwell/valuetasks
sharwell Jul 13, 2021
012b2e6
Update language feature status doc. (#54728)
333fred Jul 13, 2021
dec4f47
Minor record ToString improvements (#54630)
alfasgd Jul 13, 2021
278c39b
Non behavioral cleanup to the lexer prior to raw string work. (#54790)
CyrusNajmabadi Jul 13, 2021
99db879
Improve LangVersion diagnostic for target typed conditional (#54797)
RikkiGibson Jul 14, 2021
043b60e
Reduce allocations in CSharp command line parsing (#54675)
jaredpar Jul 14, 2021
ba22206
Test argument completion triggers with non-empty arguments
sharwell Jul 14, 2021
2946c61
Fix incorrect unit test code sample in source generator docs (#54320)
scharnyw Jul 14, 2021
f64ceb4
Record package version for C# 10 (#54802)
jcouv Jul 14, 2021
234ac72
Merge remote-tracking branch 'upstream/main' into farOrder2
CyrusNajmabadi Jul 14, 2021
8aa8947
PR feedback
CyrusNajmabadi Jul 14, 2021
79f845c
specify capacity
CyrusNajmabadi Jul 14, 2021
1e4f7fe
Add comments
CyrusNajmabadi Jul 14, 2021
53896ea
Add comments
CyrusNajmabadi Jul 14, 2021
f1c55b5
Avoid computing unused values in lsif
CyrusNajmabadi Jul 14, 2021
1fd595d
Compute the doc comment one and reuse over all calls
CyrusNajmabadi Jul 14, 2021
8dd9368
Add comment
CyrusNajmabadi Jul 14, 2021
cfab474
Merge pull request #54814 from sharwell/add-test
sharwell Jul 15, 2021
353d9ff
Update value tracking to fix a number of UI issues.
ryzngard Jul 15, 2021
19fd555
Remove legacy Span hacks from compiler (#54060)
agocke Jul 15, 2021
a56128e
Change feature flag name
dibarbet Jul 15, 2021
9087236
Merge pull request #54838 from ryzngard/issues/value_tracking_themes
ryzngard Jul 15, 2021
debd668
Merge pull request #54654 from CyrusNajmabadi/farOrder2
CyrusNajmabadi Jul 15, 2021
499d705
Bump Roslyn version for VS 16.11 preview 4 release
JoeRobich Jul 15, 2021
fce221d
Ensure option persisters are available before taking a lock
sharwell Jul 15, 2021
35fbb8d
Merge pull request #54844 from dotnet/dev/jorobich/version-bump
Jul 15, 2021
8647657
Move remaining member rude edit analysis to semantics (#54826)
tmat Jul 15, 2021
48872f1
Merge branch 'release/dev17.0' into merges/release/dev16.11-to-releas…
JoeRobich Jul 16, 2021
589ad4f
Merge pull request #54831 from CyrusNajmabadi/lsifPerf
CyrusNajmabadi Jul 16, 2021
4a24b8b
Handle enhanced #line directive in classifier (#54648)
cston Jul 16, 2021
2e52301
Merge pull request #54841 from dibarbet/update_flag_title
dibarbet Jul 16, 2021
9ac8eeb
Enable experiment for all internal users and change name (#54858)
allisonchou Jul 16, 2021
91b4a76
Merge pull request #54853 from dotnet/merges/release/dev16.11-to-rele…
dotnet-bot Jul 16, 2021
51d3975
Merge pull request #54861 from dotnet/merges/release/dev17.0-to-main
dotnet-bot Jul 16, 2021
1de657a
Merge pull request #54845 from sharwell/no-lock-persisters
sharwell Jul 16, 2021
7fd079e
[main] Update dependencies from dotnet/source-build (#54567)
dotnet-maestro[bot] Jul 16, 2021
dc3d674
Capture open documents content on EnC session start (#54849)
tmat Jul 16, 2021
417bad8
Fix RPS issues in Razor options service (#54857)
allisonchou Jul 16, 2021
ad31382
Merge pull request #48352 from Youssef1313/await-completion
CyrusNajmabadi Jul 16, 2021
a129046
Revert "Merge pull request #54654 from CyrusNajmabadi/farOrder2" (#54…
allisonchou Jul 16, 2021
6b930e9
Update dependencies from https://github.com/dotnet/source-build build…
dotnet-maestro[bot] Jul 17, 2021
3109cfc
Fix typo (Memebers -> Members) mentioned in issue #54497 (#54910)
AndreyTretyak Jul 19, 2021
9aec365
Fix typo (#54909)
AZero13 Jul 19, 2021
6453b4f
Make TypeSymbol.cs/IsTupleTypeOfCardinality internal as mentioned in …
AndreyTretyak Jul 19, 2021
a7232b9
Update dependencies from https://github.com/dotnet/roslyn build 20210…
dotnet-maestro[bot] Jul 19, 2021
5f4a192
Fix MakeTypeAbstract to preserve existing modifiers (#54905)
davidwengier Jul 19, 2021
60f570c
Fix ModifyEntry() when applied multiple times + add test (#54887)
chsienki Jul 19, 2021
28d84d0
Don't assume GetTouchingTokenAsync returns a valid token with a paren…
davidwengier Jul 19, 2021
aad722b
Merge branch 'main' of github.com:dotnet/roslyn into merges/main-to-f…
RikkiGibson Jul 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/Language Feature Status.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ efforts behind them.

| Feature | Branch | State | Developer | Reviewer | LDM Champ |
| ------- | ------ | ----- | --------- | -------- | --------- |
| [Static Abstract Members In Interfaces](https://github.com/dotnet/csharplang/issues/4436) | [StaticAbstractMembersInInterfaces](https://github.com/dotnet/roslyn/tree/features/StaticAbstractMembersInInterfaces) | [In Progress](https://github.com/dotnet/roslyn/issues/52221) | [AlekseyTs](https://github.com/AlekseyTs) | [333fred](https://github.com/333fred), [RikkiGibson](https://github.com/RikkiGibson) | [MadsTorgersen](https://github.com/MadsTorgersen) |
| [File-scoped namespace](https://github.com/dotnet/csharplang/issues/137) | [FileScopedNamespaces](https://github.com/dotnet/roslyn/tree/features/FileScopedNamespaces) | [In Progress](https://github.com/dotnet/roslyn/issues/49000) | [RikkiGibson](https://github.com/RikkiGibson) | [jcouv](https://github.com/jcouv), [chsienki](https://github.com/chsienki) | [CyrusNajmabadi](https://github.com/CyrusNajmabadi) |
| [Interpolated string improvements](https://github.com/dotnet/csharplang/issues/4487) | [interpolated-string](https://github.com/dotnet/roslyn/tree/features/interpolated-string) | [In Progress](https://github.com/dotnet/roslyn/issues/51499) | [333fred](https://github.com/333fred) | [AlekseyTs](https://github.com/AlekseyTs), [chsienki](https://github.com/chsienki) | [jaredpar](https://github.com/jaredpar) |
| [Parameterless struct constructors](https://github.com/dotnet/csharplang/issues/99) | [struct-ctors](https://github.com/dotnet/roslyn/tree/features/struct-ctors) | [In Progress](https://github.com/dotnet/roslyn/issues/51698) | [cston](https://github.com/cston) | [jcouv](https://github.com/jcouv), [333fred](https://github.com/333fred) | [jcouv](https://github.com/jouv) |
| [Lambda improvements](https://github.com/dotnet/csharplang/blob/main/proposals/lambda-improvements.md) | [lambdas](https://github.com/dotnet/roslyn/tree/features/lambdas) | [In Progress](https://github.com/dotnet/roslyn/issues/52192) | [cston](https://github.com/cston) | [333fred](https://github.com/333fred), [jcouv](https://github.com/jcouv) | [jaredpar](https://github.com/jaredpar) |
| [nameof(parameter)](https://github.com/dotnet/csharplang/issues/373) | main | [In Progress](https://github.com/dotnet/roslyn/issues/40524) | [jcouv](https://github.com/jcouv) | TBD | [jcouv](https://github.com/jcouv) |
| [Relax ordering of `ref` and `partial` modifiers](https://github.com/dotnet/csharplang/issues/946) | [ref-partial](https://github.com/dotnet/roslyn/tree/features/ref-partial) | In Progress | [alrz](https://github.com/alrz) | [gafter](https://github.com/gafter) | [jcouv](https://github.com/jcouv) |
| [Parameter null-checking](https://github.com/dotnet/csharplang/issues/2145) | [param-nullchecking](https://github.com/dotnet/roslyn/tree/features/param-nullchecking) | [In Progress](https://github.com/dotnet/roslyn/issues/36024) | [fayrose](https://github.com/fayrose) | [agocke](https://github.com/agocke) | [jaredpar](https://github.com/jaredpar) |
Expand All @@ -38,6 +34,10 @@ efforts behind them.
| [Mix declarations and variables in deconstruction](https://github.com/dotnet/csharplang/issues/125) | main | [Merged into 16.10](https://github.com/dotnet/roslyn/issues/47746) | [YairHalberstadt ](https://github.com/YairHalberstadt) | [jcouv](https://github.com/jcouv) | [MadsTorgersen](https://github.com/MadsTorgersen) |
| [Async method builder override](https://github.com/dotnet/csharplang/issues/1407) | main | [Merged into 17.0p2](https://github.com/dotnet/roslyn/issues/51999) | [jcouv](https://github.com/jcouv) | [cston](https://github.com/cston), [RikkiGibson](https://github.com/RikkiGibson) | [stephentoub](https://github.com/stephentoub) |
| [Enhanced `#line` directive](https://github.com/dotnet/csharplang/issues/4747) | main | [Merged into 17.0p2](https://github.com/dotnet/roslyn/issues/54509) | [cston](https://github.com/cston) | [jcouv](https://github.com/jcouv), [RikkiGibson](https://github.com/RikkiGibson) | [MadsTorgersen](https://github.com/MadsTorgersen) |
| [Lambda improvements](https://github.com/dotnet/csharplang/blob/main/proposals/lambda-improvements.md) | main | [Merged into 17.0p2](https://github.com/dotnet/roslyn/issues/52192) | [cston](https://github.com/cston) | [333fred](https://github.com/333fred), [jcouv](https://github.com/jcouv) | [jaredpar](https://github.com/jaredpar) |
| [Static Abstract Members In Interfaces C# 10 Preview](https://github.com/dotnet/csharplang/issues/4436) | main | [Merged into 17.0p2](https://github.com/dotnet/roslyn/issues/52221) | [AlekseyTs](https://github.com/AlekseyTs) | [333fred](https://github.com/333fred), [RikkiGibson](https://github.com/RikkiGibson) | [MadsTorgersen](https://github.com/MadsTorgersen) |
| [Interpolated string improvements](https://github.com/dotnet/csharplang/issues/4487) | main | [Merged into 17.0p3](https://github.com/dotnet/roslyn/issues/51499) | [333fred](https://github.com/333fred) | [AlekseyTs](https://github.com/AlekseyTs), [chsienki](https://github.com/chsienki) | [jaredpar](https://github.com/jaredpar) |
| [File-scoped namespace](https://github.com/dotnet/csharplang/issues/137) | main | [Merged into 17.0p3](https://github.com/dotnet/roslyn/issues/49000) | [RikkiGibson](https://github.com/RikkiGibson) | [jcouv](https://github.com/jcouv), [chsienki](https://github.com/chsienki) | [CyrusNajmabadi](https://github.com/CyrusNajmabadi) |

# VB 16.9

Expand Down
8 changes: 4 additions & 4 deletions docs/features/source-generators.cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -693,10 +693,10 @@ await new VerifyCS.Test
TestState =
{
Sources = { code },
},
GeneratedSources =
{
(typeof(YourGenerator), "GeneratedFileName", SourceText.From(generated, Encoding.UTF8, SourceHashAlgorithm.Sha256)),
GeneratedSources =
{
(typeof(YourGenerator), "GeneratedFileName", SourceText.From(generated, Encoding.UTF8, SourceHashAlgorithm.Sha256)),
},
},
}.RunAsync();
```
Expand Down
2 changes: 2 additions & 0 deletions docs/wiki/NuGet-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ Below are the versions of the language available in the NuGet packages. Remember
- Version `3.4` includes C# 8.0 (Visual Studio 2019 version 16.4, .NET Core 3.1)
- ...
- Version `3.8` includes C# 9.0 (Visual Studio 2019 version 16.8, .NET 5)
- ...
- Version `4.0` includes C# 10.0 (Visual Studio 2022 version 17.0, .NET 6)

See the [history of C# language features](https://github.com/dotnet/csharplang/blob/main/Language-Version-History.md) for more details.

Expand Down
8 changes: 4 additions & 4 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<Sha>7e80445ee82adbf9a8e6ae601ac5e239d982afaa</Sha>
<SourceBuild RepoName="xliff-tasks" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build" Version="0.1.0-alpha.1.21330.2">
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build" Version="0.1.0-alpha.1.21366.1">
<Uri>https://github.com/dotnet/source-build</Uri>
<Sha>bf8af9a5202d5016b4bcf3424fac6bac55ef7c8e</Sha>
<Sha>80d41001c0b5a72651f5459b9b1fc3e1e9b1231d</Sha>
<SourceBuild RepoName="source-build" ManagedOnly="true" />
</Dependency>
</ProductDependencies>
Expand All @@ -18,9 +18,9 @@
<Sha>78da7776965b428ff31da8f1ff2cb073506212b7</Sha>
<SourceBuild RepoName="arcade" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.0.0-2.21359.14">
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.0.0-3.21369.1">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>ca27d128f3533dc41a46b010b8e878916328f2e4</Sha>
<Sha>ea623578b108856d3416af28af61060ed3d695e8</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.21303.2">
<Uri>https://github.com/dotnet/arcade</Uri>
Expand Down
2 changes: 1 addition & 1 deletion eng/Versions.props
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</MajorVersion>
<MinorVersion>
</MinorVersion>
<MicrosoftNetCompilersToolsetVersion>4.0.0-2.21359.14</MicrosoftNetCompilersToolsetVersion>
<MicrosoftNetCompilersToolsetVersion>4.0.0-3.21369.1</MicrosoftNetCompilersToolsetVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Versions used by several individual references below -->
Expand Down
3 changes: 3 additions & 0 deletions eng/config/globalconfigs/Common.globalconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ dotnet_diagnostic.CA1068.severity = warning
dotnet_diagnostic.CA1200.severity = warning
dotnet_diagnostic.CA1821.severity = warning

# CA2012: Use ValueTasks correctly
dotnet_diagnostic.CA2012.severity = warning

dotnet_diagnostic.IDE0055.severity = warning

dotnet_diagnostic.RS1001.severity = none
Expand Down
12 changes: 10 additions & 2 deletions src/Compilers/CSharp/Portable/Binder/Binder_Conversions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,16 @@ private BoundExpression ConvertConditionalExpression(
: GenerateConversionForAssignment(destination, source.Alternative, diagnostics);
var constantValue = FoldConditionalOperator(condition, trueExpr, falseExpr);
hasErrors |= constantValue?.IsBad == true;
if (targetTyped && !destination.IsErrorType())
MessageID.IDS_FeatureTargetTypedConditional.CheckFeatureAvailability(diagnostics, source.Syntax);
if (targetTyped && !destination.IsErrorType() && !Compilation.IsFeatureEnabled(MessageID.IDS_FeatureTargetTypedConditional))
{
diagnostics.Add(
ErrorCode.ERR_NoImplicitConvTargetTypedConditional,
source.Syntax.Location,
Compilation.LanguageVersion.ToDisplayString(),
source.Consequence.Display,
source.Alternative.Display,
new CSharpRequiredLanguageVersion(MessageID.IDS_FeatureTargetTypedConditional.RequiredVersion()));
}

return new BoundConditionalOperator(source.Syntax, isRef: false, condition, trueExpr, falseExpr, constantValue, source.Type, wasTargetTyped: targetTyped, destination, hasErrors)
.WithSuppression(source.IsSuppressed);
Expand Down
3 changes: 3 additions & 0 deletions src/Compilers/CSharp/Portable/CSharpResources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -6442,6 +6442,9 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ
<data name="IDS_FeatureTargetTypedConditional" xml:space="preserve">
<value>target-typed conditional expression</value>
</data>
<data name="ERR_NoImplicitConvTargetTypedConditional" xml:space="preserve">
<value>Conditional expression is not valid in language version {0} because a common type was not found between '{1}' and '{2}'. To use a target-typed conversion, upgrade to language version {3} or greater.</value>
</data>
<data name="ERR_DoesNotOverrideMethodFromObject" xml:space="preserve">
<value>'{0}' does not override expected method from 'object'.</value>
</data>
Expand Down
Loading