Skip to content

Commit b6f1db0

Browse files
committed
uhh somehow we're now getting a SILFunctionType when we were expecting an AnyFunctionType ???
the translation component is still the right way to go imo.
1 parent e7bcabb commit b6f1db0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/SILGen/objc_preconcurrency.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ func testOptionalVarAccess(_ grass: NSTouchGrass) {
3030
grass.cancellationHandler?()
3131
}
3232

33+
// FIXME: this is crashing in a weird spot now lol
34+
func testObjCVarWrite(_ grass: NSTouchGrass) {
35+
grass.cancellationHandler = {}
36+
}
37+
3338
// CHECK-LABEL: sil hidden [ossa] @$s19objc_preconcurrency25testOptionalAssignSetter1yyAA8OldWorldCF
3439
// CHECK: unchecked_bitwise_cast {{.*}} : $Optional<@callee_guaranteed () -> ()> to $Optional<@Sendable @callee_guaranteed () -> ()>
3540
// CHECK: #OldWorld.handler!setter : (OldWorld) -> ((@Sendable () -> ())?) -> ()

0 commit comments

Comments
 (0)