Skip to content

Commit 1b717b3

Browse files
authored
Merge pull request swiftlang#86993 from slavapestov/move-code-around-in-solver
Sema: Move some code around
2 parents 5ffbf92 + b9ac0b7 commit 1b717b3

31 files changed

+2441
-2294
lines changed

include/swift/Sema/BindingProducer.h

Lines changed: 412 additions & 0 deletions
Large diffs are not rendered by default.

include/swift/Sema/CSBindings.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,12 @@ ConversionBehavior getConversionBehavior(Type type);
685685
/// to a Double and non-optional value could be injected into an optional.
686686
bool hasConversions(Type type);
687687

688+
/// Check whether the given type can be used as a binding for the given
689+
/// type variable.
690+
///
691+
/// \returns true if the binding is okay.
692+
bool checkTypeOfBinding(TypeVariableType *typeVar, Type type);
693+
688694
} // namespace inference
689695
} // namespace constraints
690696
} // namespace swift

0 commit comments

Comments
 (0)