Commit cde2184
Correct ValidateContainerView doc example for the neutral TFM alias
The override example showed a backend-specific platform type as the
parameter, but PlatformView is a per-TFM alias that resolves to
System.Object on the non-platform build. An external backend copying the
example verbatim gets CS0115 ("no suitable method found to override"),
which is exactly what happened while writing the external backend test
handler in this PR.
Show the override taking `object` and testing the concrete wrapper type
with a pattern match instead, and state the aliasing rule explicitly so
the constraint is discoverable from the API docs rather than from a
compiler error.
Docs-only; no API or behavior change.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 58776f0 commit cde2184
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
250 | 253 | | |
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
254 | | - | |
| 257 | + | |
| 258 | + | |
255 | 259 | | |
256 | 260 | | |
257 | 261 | | |
| |||
0 commit comments