From cdd4703eb26e7d23c89b8df848550899b8f80980 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Sun, 11 May 2025 00:20:38 +1000 Subject: [PATCH] Update notes re: [Obsolete] --- C#-and-.NET-docs-supplement.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C#-and-.NET-docs-supplement.md b/C#-and-.NET-docs-supplement.md index cc905f4..a632d5d 100644 --- a/C#-and-.NET-docs-supplement.md +++ b/C#-and-.NET-docs-supplement.md @@ -158,7 +158,9 @@ WinForms' `Label.Text` stops reading at the first NUL for measurement/rendering, ## `[Obsolete]` only works on base declarations -See [dotnet/csharplang#2652](https://github.com/dotnet/csharplang/issues/2652). +See ~~dotnet/csharplang#2652~~ [dotnet/csharplang#8937](https://github.com/dotnet/csharplang/issues/8937) (something something [convenient place](https://github.com/dotnet/maui/discussions/339#discussioncomment-345659)). + +We have the diagnostic `CS0809` enabled to help avoid this mistake, but [even that's not foolproof](https://github.com/dotnet/roslyn/issues/78548). ## Out-of-range `Span` slices throw `ArgumentOutOfRangeException` with wrong param name