We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce826c2 commit 1728ccaCopy full SHA for 1728cca
lib/Sema/CSBindings.cpp
@@ -148,6 +148,12 @@ bool BindingSet::isDelayed() const {
148
}
149
150
bool BindingSet::involvesTypeVariables() const {
151
+ // This type variable always depends on a pack expansion variable
152
+ // which should be inferred first if possible.
153
+ if (TypeVar->getImpl().getGenericParameter() &&
154
+ TypeVar->getImpl().canBindToPack())
155
+ return true;
156
+
157
// This is effectively O(1) right now since bindings are re-computed
158
// on each step of the solver, but once bindings are computed
159
// incrementally it becomes more important to double-check that
0 commit comments