File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -104,3 +104,22 @@ enum MyEnum {
104
104
// CHECK-NEXT: (parameter "v"))
105
105
// CHECK-NEXT: (brace_stmt range=[{{.+}}])))))
106
106
_ = { ( v: MyEnum ) in }
107
+
108
+ // CHECK-LABEL: (struct_decl range=[{{.+}}] "SelfParam"
109
+ struct SelfParam {
110
+
111
+ // CHECK-LABEL: (func_decl range=[{{.+}}] "createOptional()" type
112
+ // CHECK-NEXT: (parameter "self")
113
+ // CHECK-NEXT: (parameter_list range=[{{.+}}])
114
+ // CHECK-NEXT: (result
115
+ // CHECK-NEXT: (type_optional
116
+ // CHECK-NEXT: (type_ident
117
+ // CHECK-NEXT: (component id='SelfParam' bind=none))))
118
+ static func createOptional( ) -> SelfParam ? {
119
+
120
+ // CHECK-LABEL: (call_expr type='<null>' arg_labels=
121
+ // CHECK-NEXT: (unresolved_decl_ref_expr type='<null>' name=SelfParam function_ref=unapplied)
122
+ // CHECK-NEXT: (tuple_expr type='()'{{.*}}))
123
+ SelfParam ( )
124
+ }
125
+ }
You can’t perform that action at this time.
0 commit comments