-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Verify that a GenericTypeParamDecl's depth and index are correct #20100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lib/AST/ASTVerifier.cpp
Outdated
@@ -2715,6 +2715,37 @@ class Verifier : public ASTWalker { | |||
verifyCheckedBase(nominal); | |||
} | |||
|
|||
void verifyChecked(GenericTypeParamDecl *GTPD) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are any of these properties things we can meaningfully check in verifyParsed or verifyCheckedAlways (i.e. "verifyCheckedEvenIfThereAreErrorsAfterParsing")?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@slavapestov Question still relevant!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
verifyCheckedAlways() should be OK, but not verifyParsed() since the depth isn't set yet.
@swift-ci Please test |
@swift-ci Please test source compatibility |
@slavapestov Review ping |
(with respect to the containing GenericParamList)
78c827c
to
872d4c1
Compare
@swift-ci Please test |
Build failed |
Build failed |
@swift-ci Please test Linux |
Looks like this has problems in module merging. I'll get back to it soon, but reverting for now. |
…ect" This reverts swiftlang#20100 / commit 0bf65f1. It's causing problems on the Source Compatibility bot.
(with respect to the containing GenericParamList)
As suggested by @slavapestov in #20091.