Files
swift-mirror/validation-test/compiler_crashers_2_fixed/sr10992.swift
2019-06-24 21:58:33 +01:00

11 lines
192 B
Swift

// RUN: not %target-swift-frontend -typecheck %s
protocol P {}
struct S<T> {}
extension S : P where T : P {}
func foo(_ fn: (S<String>) -> Void) {}
func bar(_ fn: (P) -> Void) {
foo(fn)
}