File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -915,12 +915,7 @@ void repairTupleOrAssociatedValuePatternIfApplicable(
915
915
// / Perform top-down type coercion on the given pattern.
916
916
Pattern *TypeChecker::coercePatternToType (ContextualPattern pattern,
917
917
Type type,
918
- TypeResolutionOptions options,
919
- TypeLoc tyLoc) {
920
- if (tyLoc.isNull ()) {
921
- tyLoc = TypeLoc::withoutLoc (type);
922
- }
923
-
918
+ TypeResolutionOptions options) {
924
919
auto P = pattern.getPattern ();
925
920
auto dc = pattern.getDeclContext ();
926
921
auto &Context = dc->getASTContext ();
Original file line number Diff line number Diff line change @@ -959,8 +959,7 @@ class TypeChecker final {
959
959
// /
960
960
// / \returns the coerced pattern, or nullptr if the coercion failed.
961
961
static Pattern *coercePatternToType (ContextualPattern pattern, Type type,
962
- TypeResolutionOptions options,
963
- TypeLoc tyLoc = TypeLoc());
962
+ TypeResolutionOptions options);
964
963
static bool typeCheckExprPattern (ExprPattern *EP, DeclContext *DC,
965
964
Type type);
966
965
You can’t perform that action at this time.
0 commit comments