mirror of
https://github.com/apple/swift.git
synced 2026-11-30 09:15:01 +01:00
When analyzing uses of `self`, the flow-isolation pass was recently changed to conservatively treat unrecognized instructions as property uses. This caused errors in real-world projects that use instructions the pass does not yet handle, since they were being incorrectly flagged as property accesses. Restore the previous behavior of ignoring unrecognized instructions for now. This lets affected projects compile again while we tighten this up in a more measured way. rdar://175530379
15 lines
334 B
Swift
15 lines
334 B
Swift
// RUN: %target-swift-frontend -strict-concurrency=complete -swift-version 5 -parse-as-library -emit-sil -verify %s -o /dev/null
|
|
|
|
// REQUIRES: objc_interop
|
|
// REQUIRES: concurrency
|
|
|
|
import ObjectiveC
|
|
|
|
@MainActor
|
|
final class SimpleDeinitTestWithObjC: NSObject {
|
|
let name: String = ""
|
|
deinit {
|
|
_ = { self.name }
|
|
}
|
|
}
|