Bug report: this fragment compiles in Xcode 9 but not in the Swift sandbox:
import Foundation
@objc class Foo: NSObject {}
print(Foo())
import Foundation
@objc class Foo: NSObject {}
print(Foo())