mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Previously, we attempted to infer @objc-ness based on conformance, but doing so is fraught with ordering dependencies, and just doesn't work in the general case. Among other crimes, this allowed us to retroactively mark a non-@objc method from an imported module as @objc... even though nobody would ever then emit the @objc entry points for it. Fixes the rest of rdar://problem/18383574. Swift SVN r24831
12 lines
239 B
Swift
12 lines
239 B
Swift
// Used by the objc_protocols test to test extensions that add conformances
|
|
// using existing methods on a class.
|
|
import Foundation
|
|
|
|
public class Bas {
|
|
@objc public func runce() {}
|
|
}
|
|
|
|
public class Zang {
|
|
@objc public func funge() {}
|
|
}
|