Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0187-rdar46678653.swift
Doug Gregor 8d5971e81e [Type checker] Be more careful when checking @_implements.
Fixes rdar://problem/46678653.
2019-01-04 20:22:34 -08:00

16 lines
171 B
Swift

// RUN: not %target-swift-frontend -typecheck %s
protocol P: class { }
protocol Q {
func g()
}
protocol P { }
struct S : Q {
@_implements(P, g())
func h() {}
}