Files
swift-mirror/validation-test/compiler_crashers_2_fixed/rdar56116278.swift
Robert Widmann 86e5ed18a0 Add a bailout path to protocol requirement source formation
The GSB will try to form and note invalid constraints, but there are
a few paths that aren't prepared for error types to pop up.  Add
a defensive check to formProtocolRelativeType to make sure we don't wind
up force-casting an error type.

Fixes rdar://56116278
2019-10-25 13:08:41 -07:00

4 lines
72 B
Swift

// RUN: not %target-typecheck-verify-swift
protocol P where A : Int {}