Repository navigation
Commit 7e25565
[tests] Only assert NSSet<T> is trimmed when the dynamic registrar is removed.
The trimmable-static registrar only tells the trimmer to remove the
[ProtocolMember] attributes (which reference generic types like NSSet<T> in
optional protocol members) when the dynamic registrar has been removed - it
reads these attributes via reflection at runtime, so they're kept when it's
present. When the attributes aren't trimmed, NSSet<T> stays too, so the
LinkedAwayGenericTypeAsOptionalMemberInProtocol test has nothing to verify.
Ignore the test in that case (e.g. the prepare-assemblies|coreclr|trimmable-
static-registrar variation on macOS, where DynamicRegistrationSupported is
true), instead of failing.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 592d722 commit 7e25565
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
511 | 517 | | |
512 | 518 | | |
513 | 519 | | |
| |||
0 commit comments