File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -274,20 +274,6 @@ func associatedTypeIdentity() {
274
274
sameType ( gary ( doug ( ) ) . r_out ( ) , gary ( candace ( ) ) . r_out ( ) ) // expected-error{{}}
275
275
}
276
276
277
- /* TODO: diagnostics
278
- struct DoesNotConform {}
279
-
280
- func doesNotConform() -> some P {
281
- return DoesNotConform()
282
- }
283
-
284
- var doesNotConformProp: some P = DoesNotConform()
285
-
286
- var DoesNotConformComputedProp: some P {
287
- return DoesNotConform()
288
- }
289
- */
290
-
291
277
func redeclaration( ) -> some P { return 0 } // expected-note{{previously declared}}
292
278
func redeclaration( ) -> some P { return 0 } // expected-error{{redeclaration}}
293
279
func redeclaration( ) -> some Q { return 0 }
@@ -356,3 +342,10 @@ func recursive_func_is_invalid_opaque() {
356
342
return rec ( x: x - 1 )
357
343
}
358
344
}
345
+
346
+ func closure( ) -> some P {
347
+ _ = {
348
+ return " test "
349
+ }
350
+ return 42
351
+ }
You can’t perform that action at this time.
0 commit comments