Repository navigation
base red: compile, #31087's test Link class is fileprivate so @Observable can name it - #31117
Conversation
…servable macro can name it CmuxNext test compile at the feat tip 6dee40a (job 93d8d8e613bc7df8e78570b6): CloudStartChatMachineTests.swift:224:2: error: 'Link' is inaccessible due to 'private' protection level (in macro expansion @observable). The @observable macro emits an extension at file scope that names the type; a private nested class is not visible there. fileprivate keeps it out of every other file.
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
Shipped in:
|
|
Review (subagent, correctness first): SHIP at d92da50
|
|
Thanks for catching this. #31087 was ours: we merged it before its swift test reported. We checked the diff against #31087's test: the |
|
Fleet compile at d92da50 (recipe 2, --package CmuxNext --app): job 75cf911a62f0046ca3e59b1a: CmuxNext ok, app ok, cmux-tui ok. The tip's compile red (STATUS 3916) is gone at this head. (lead) |
Fixes #31087
Base red (compile, priority zero): the CmuxNext test target does not compile at the feat tip (tip watcher STATUS 3916, job
93d8d8e613bc7df8e78570b6at 6dee40a):#31087 added
@MainActor @Observable private final class Linknested in the test suite. The@Observablemacro emits an extension at file scope that names the type, and aprivatenested type is not visible there.fileprivatemakes it visible to that extension and still keeps it out of every other file.One word in one test file; no product code.
Observed / Not run
prepush-gate.py: no new violations.Changelog
none
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Fixes #31087 by changing the
Linktest class fromprivatetofileprivateso the CmuxNext test target compiles.The
@Observablemacro emits a file-scope extension that names the type, and aprivatenested type isn't visible there.fileprivatekeeps the type out of every other file while allowing the macro's extension to reference it. No product code is affected.Written for commit d92da50. Summary will update on new commits.