mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
20 lines
288 B
Swift
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)
|
|
}
|