Commit f0505d7
Remove a limitation on @objc protocol adoption.
For example, this works even though the C class isn't marked @objc,
isn't a subclass of NSObject, and isn't a subclass of an @objc class:
import Foundation
@objc protocol P {}
class C: P {}
Co-authored-by: Slava Pestov <spestov@apple.com>1 parent b20a23e commit f0505d7
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2145 | 2145 | | |
2146 | 2146 | | |
2147 | 2147 | | |
2148 | | - | |
2149 | | - | |
2150 | | - | |
| 2148 | + | |
| 2149 | + | |
2151 | 2150 | | |
2152 | 2151 | | |
2153 | 2152 | | |
| |||
0 commit comments