mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
They were always enabled, meaning migrating from Swift 4 -> 4.2 would pick up the associated fixits and add @objc unnecessarily in many places. Resolves rdar://problem/39951671
11 lines
467 B
Swift
11 lines
467 B
Swift
// REQUIRES: objc_interop
|
|
// RUN: %target-swift-frontend -typecheck -swift-version 4 %s
|
|
// RUN: %empty-directory(%t) && %target-swift-frontend -c -primary-file %s -swift-version 4 -emit-migrated-file-path %t/objc_inference_noop.swift.result -emit-remap-file-path %t/objc_inference_noop.swift.remap -migrate-keep-objc-visibility -o /dev/null
|
|
// RUN: diff -u %s %t/objc_inference_noop.swift.result
|
|
|
|
import Foundation
|
|
|
|
@objc class Foo : NSObject {
|
|
var foo: Int = 10
|
|
}
|