We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7bcabb commit b6f1db0Copy full SHA for b6f1db0
test/SILGen/objc_preconcurrency.swift
@@ -30,6 +30,11 @@ func testOptionalVarAccess(_ grass: NSTouchGrass) {
30
grass.cancellationHandler?()
31
}
32
33
+// FIXME: this is crashing in a weird spot now lol
34
+func testObjCVarWrite(_ grass: NSTouchGrass) {
35
+ grass.cancellationHandler = {}
36
+}
37
+
38
// CHECK-LABEL: sil hidden [ossa] @$s19objc_preconcurrency25testOptionalAssignSetter1yyAA8OldWorldCF
39
// CHECK: unchecked_bitwise_cast {{.*}} : $Optional<@callee_guaranteed () -> ()> to $Optional<@Sendable @callee_guaranteed () -> ()>
40
// CHECK: #OldWorld.handler!setter : (OldWorld) -> ((@Sendable () -> ())?) -> ()
0 commit comments