Skip to content

Conversation

DougGregor
Copy link
Member

See swiftlang/swift#80814 for more context

@DougGregor DougGregor requested a review from ahoppen as a code owner April 15, 2025 18:04
@DougGregor
Copy link
Member Author

@swift-ci please test

Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating

Comment on lines +382 to +386
let filename = diag.codeDescription?.href.fileURL?.lastPathComponent
XCTAssertNotNil(filename)
if let filename {
XCTAssert(filename.starts(with: "property-wrapper-requirements"))
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One suggestion to make the test a little nicer.

Suggested change
let filename = diag.codeDescription?.href.fileURL?.lastPathComponent
XCTAssertNotNil(filename)
if let filename {
XCTAssert(filename.starts(with: "property-wrapper-requirements"))
}
let filename = try XCTUnwrap(diag.codeDescription?.href.fileURL?.lastPathComponent)
XCTAssert(filename.starts(with: "property-wrapper-requirements"))

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, it's here: #2113

@DougGregor DougGregor merged commit 2c1b859 into swiftlang:main Apr 15, 2025
3 checks passed
@DougGregor DougGregor deleted the educational-notes-diags-generalization branch April 15, 2025 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants