Files
swift-mirror/validation-test/compiler_crashers_fixed/issue-81712.swift
Hamish Knight 4e811c3a88 [test] Merge crasher directories
There is no longer much of a good reason to keep these separate,
merge them.
2025-10-18 12:51:30 +01:00

21 lines
292 B
Swift

// RUN: %target-typecheck-verify-swift
protocol Id {
associatedtype ID
}
protocol P<Id1> {
associatedtype Id1: Id
associatedtype Id2: Id where Id2.ID == Id1.ID
func foo(_: Id2.ID)
}
struct MyId: Id {
typealias ID = Int
}
func f(id: Int, cache: any P<MyId>) {
cache.foo(id)
}