File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -519,6 +519,17 @@ public class CaptureTwoValuesTest {
519
519
}
520
520
}
521
521
522
+
523
+ final class Final {
524
+ static func useSelf( _ body: ( Self ) -> ( ) ) { }
525
+ }
526
+
527
+ // CHECK-LABEL: sil hidden [ossa] @$s12dynamic_self13testNoErasureyyyAA5FinalCXEF : $@convention(thin) (@noescape @callee_guaranteed (@guaranteed Final) -> ()) -> () {
528
+ func testNoErasure( _ body: ( Final ) -> ( ) ) {
529
+ // CHECK: function_ref @$s12dynamic_self5FinalC7useSelfyyyACXDXEFZ : $@convention(method) (@noescape @callee_guaranteed (@guaranteed Final) -> (), @thick Final.Type) -> ()
530
+ return Final . useSelf ( body)
531
+ }
532
+
522
533
// CHECK-LABEL: sil_witness_table hidden X: P module dynamic_self {
523
534
// CHECK: method #P.f: {{.*}} : @$s12dynamic_self1XCAA1PA2aDP1f{{[_0-9a-zA-Z]*}}FTW
524
535
You can’t perform that action at this time.
0 commit comments