Repository navigation
test(sourcegen): fix net472 compile of AotConverterScanTests obsolete-conversion fixture - #7330
Conversation
… so net472 compiles (#7329)
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Reviewed: the change is small and correct. Replacing the positional |
[Low impact] The fixture change appears safe to merge. SummaryReplaces the fixture’s positional record with a plain
Reviews (1) · Last reviewed commit: "test(sourcegen): avoid record struct in ..." · Reviewed by Greptile |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Review: LGTM. The fixture now uses a plain |
|
Red-main check: failed .NET run 41311511530 is the net472 CS0518 failure fixed by this PR in 62db448. Confirmed that commit is an ancestor of current main a828bb8. The .NET workflow is already dispatched on that head: https://github.com/thomhurst/TUnit/actions/runs/41662470681 (queued). Waiting for that run; no duplicate dispatch or rerun. |
Summary
Fixes red
main.AotConverterScanTests.SkipsConversionsBlockedByObsoleteError(added in #7317) compiled a fixture that declarespublic readonly record struct Token(string Value). A positional record needsSystem.Runtime.CompilerServices.IsExternalInit, and the net472 reference set doesn't include it, so the in-test compilation reported CS0518 and the test failed onnet472(main run 41311511530,modularpipeline (windows-latest)).The fixture now declares a plain
readonly structwith a constructor and a get-only property. The conversion operators and[Obsolete]attributes under test are unchanged.Validation
dotnet test -c Release -f net472 --treenode-filter "/*/*/AotConverterScanTests/*"intests/TUnit.Core.SourceGenerator.Tests: 2/2 passednet10.0: 2/2 passedCloses #7329
Summary by CodeRabbit