Files
swift-mirror/test/Concurrency/flow_isolation_objc.swift
Michael Gottesman 763eee8589 [flow-isolation] Restore old behavior for unhandled instructions in use analysis
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
2026-04-24 11:58:17 -07:00

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 }
}
}