Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0084-rdar31093854.swift
Doug Gregor a9733cb8db [GSB] Resolve dependent member types in same-type and superclass constraints.
Once we're finalizing same-type-to-concrete and superclass
constraints, replace any unresolved DependentMemberTypes with their
resolved counterpairs. This allows us to simplify
DependentGenericTypeResolver, which only builds unresolved
DependentMemberTypes now, and eliminates the penultimate use of
ArchetypeResolutionKind::AlwaysPartial.
2017-05-30 11:43:53 -07:00

20 lines
288 B
Swift

// RUN: %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)
}