Files
swift-mirror/validation-test/compiler_crashers_fixed/0084-rdar31093854.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

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)
}