A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/dotnet/csharplang/issues/2460 below:

target-typed conditional expression (VS 16.8, .NET 5) · Issue #2460 · dotnet/csharplang · GitHub

This was split from #2389 and is being treated as a separate feature

For a conditional expression c ? e1 : e2, when there is no common type for e1 and e2, we define a new conditional expression conversion that permits an implicit conversion from the conditional expression to any type T for which there is a conversion-from-expression from e1 to T and also from e2 to T. It is an error if a conditional expression neither has a common type between e1 and e2 nor is subject to a conditional expression conversion.

Relates to #2701 (target-typed new[])

bbarry, YairHalberstadt, carlreinke, orthoxerox, yaakov-h and 43 morebbarry, YairHalberstadt, yaakov-h, Unknown6656, SIkebe and 7 moreYairHalberstadt, Unknown6656, louthy, DaZombieKiller, canton7 and 3 more


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4