Skip to content

Commit c1c7112

Browse files
committed
Remove some unused code and fix a test
1 parent 4d1de7f commit c1c7112

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/Sema/CSApply.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7265,10 +7265,6 @@ Optional<SolutionApplicationTarget> ConstraintSystem::applySolution(
72657265
if (!rewrittenExpr)
72667266
return None;
72677267

7268-
if (target.getExprContextualTypePurpose() == CTP_Initialization) {
7269-
7270-
}
7271-
72727268
result.setExpr(rewrittenExpr);
72737269
} else {
72747270
auto fn = *target.getAsFunction();

test/Interpreter/repl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ pr = "foo"
194194
pr.foo()
195195

196196
var _ : ([Int]).Type = type(of: [4])
197-
// CHECK: : ([Int]).Type
197+
// CHECK: : [Int].Type
198198
var _ : ((Int) -> Int)? = .none
199199
// CHECK: : ((Int) -> Int)?
200200
func chained(f f: @escaping (Int) -> ()) -> Int { return 0 }

0 commit comments

Comments
 (0)