mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Otherwise, if we move in a formal access cleanup value into switch emission using a cleanup cloner, we will improperly have a formal access cleanup that will be invalidated by a normal Scope which violates SILGen invariants. Also in a certain sense the bindings performed by SILGenPattern that do this type of forwarding are arguments in a certain sense so it seems reasonable to do this. <rdar://problem/70736924>
12 lines
261 B
Swift
12 lines
261 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-emit-silgen -import-objc-header %S/Inputs/objc_bridging_nsurl.h %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
// Make sure we do not crash on this
|
|
|
|
protocol P {
|
|
var outputURL : URL? { get set }
|
|
}
|
|
|
|
extension ObjCKlass : P {} |