Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0084-rdar31093854.swift
Doug Gregor 44c2f849d6 [Type checker] Continue validating requirements after an error.
We want to validate both type in same-type or conformance constraints,
even when the first type is ill-formed, so we don't leave null types
around for later phases to crash on.

Fixes rdar://problem/31093854.
2017-04-05 14:05:59 -07:00

20 lines
292 B
Swift

// RUN: not %target-swift-frontend -swift-version 4 %s -typecheck -o /dev/null
// This should actually type check successfully.
protocol P {
associatedtype T
}
protocol Q1 : P {
typealias T = Int
func f(_: T)
}
protocol Q2 : P {
associatedtype T where T == Int
func f(_: T)
}