Родитель
502af192c7
Коммит
3b75940f80
|
@ -42,7 +42,7 @@ on top of that value, so side-effects (such as `Console.WriteLine`) would be obs
|
|||
to the bug that sunk parameterless struct constructors the last time we attempted to add them, but .NET Core and 5 do have the correct
|
||||
behavior here. As .NET Framework is not a supported target platform for C# 10, however, we don't think this is a showstopper like it would
|
||||
have been back in C# 6. We think that this is a good place for an analyzer to warn consumers, as the compiler itself doesn't want to try
|
||||
and infer what framework a user is targetting based on the presence of APIs, and runtime feature checks in the compiler are always hard
|
||||
and infer what framework a user is targeting based on the presence of APIs, and runtime feature checks in the compiler are always hard
|
||||
errors and cannot be worked around.
|
||||
|
||||
#### Conclusion
|
||||
|
|
Загрузка…
Ссылка в новой задаче