Commit Graph

2 Commits

Author SHA1 Message Date
Huon Wilson
9a7be78421 [Sema] Give an explicit error for conditional conformances to @objc protocols.
Fixes https://bugs.swift.org/browse/SR-7372.
2018-04-09 09:20:39 +10:00
Huon Wilson
dd845c40d2 [Sema] Disallow conditional conformances on objective-c generics.
There's no way to look up information about objective-c generic
parameters, meaning the runtime cannot check same-type constraints or
conformance requirements, so dynamic casts cannot work. We want to keep
the static and dynamic systems the same, so we have to disable this
functionality from the start (i.e. no conditional conformances on
objective-c types :( ).

Fixes rdar://problem/37524969.
2018-02-15 16:59:03 +11:00