Commit Graph

6 Commits

Author SHA1 Message Date
Mark Lacey
78d83e5703 Use %target-typecheck-verify-swift where possible. 2018-07-26 23:13:43 -07:00
Huon Wilson
d33a5c16f2 [Sema] Explicit error for "extension GenericClass : ObjcProtocol".
If there was any requirements in the @objc protocol, the user got an error in
some form (a complaint about those requirements), but giving the direct error is
better, and handles @objc protocol with no requirements.

Also, fix a hole in that existing @objc method check: in `class Outer<T> { class
Inner {} }`, Inner should be considered generic, but the loop that was checking
for this didn't consider it.

Fixes https://bugs.swift.org/browse/SR-7370 and rdar://problem/39239512.
2018-04-13 08:09:02 +10:00
TheOtherDave
7eee82a9b3 Add files via upload 2017-03-15 20:58:11 -07:00
TheOtherDave
505801d946 fixed expected error message 2017-03-15 18:30:00 -07:00
TheOtherDave
1a2703307e Add files via upload
"@objc is not supported within extensions of generic classes, or classes that inherit from generic classes"
2017-03-15 17:54:32 -07:00
TheOtherDave
03257c36ab Tests for error: objc_in_generic_extension
"@objc is not supported within extensions of generic classes, or classes that inherit from generic classes"
2017-03-15 17:25:40 -07:00