mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Avoid asking for the SecondType of Constraints that don't have them.
Assertions tripped while trying to reproduce SR-5513.
This commit is contained in:
@@ -641,7 +641,6 @@ static bool shouldContractEdge(ConstraintKind kind) {
|
||||
case ConstraintKind::BindParam:
|
||||
case ConstraintKind::BindToPointerType:
|
||||
case ConstraintKind::Equal:
|
||||
case ConstraintKind::BindOverload:
|
||||
|
||||
// We currently only allow subtype contractions for the purpose of
|
||||
// parameter binding constraints.
|
||||
|
||||
Reference in New Issue
Block a user