Files
swift-mirror/test/SILGen/objc_bridging_url.swift
Michael Gottesman f84f48eb5a [silgen] Make SwitchCaseFullExpr use an ArgumentScope instead of just a Scope.
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>
2020-11-12 23:31:13 -08:00

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