You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"foo" // expected-warning {{string literal is unused}} expected-error {{missing return in a closure expected to return 'String'; did you mean to return the last expression?}} {{5-5=return }}
11
11
}
12
12
13
+
func ff_fixit_addreturn_ifdecl()->String{
14
+
#if true
15
+
print("entering ff_fixit_addreturn()")
16
+
"foo" // expected-warning {{string literal is unused}} expected-error {{missing return in a function expected to return 'String'; did you mean to return the last expression?}} {{5-5=return }}
17
+
#endif
18
+
}
13
19
20
+
letcl_fixit_addreturn_ifdecl:()->String={
21
+
#if true
22
+
print("entering cl_fixit_addreturn()")
23
+
"foo" // expected-warning {{string literal is unused}} expected-error {{missing return in a closure expected to return 'String'; did you mean to return the last expression?}} {{5-5=return }}
0 commit comments