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
Copy file name to clipboardExpand all lines: test/FixCode/fixits-omit-return.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
func ff_fixit_addreturn()->String{
4
4
print("entering ff_fixit_addreturn()")
5
-
"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 }}
5
+
"foo" // expected-warning {{string literal is unused}} expected-error {{missing return in a global function expected to return 'String'; did you mean to return the last expression?}} {{5-5=return }}
"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 }}
16
+
"foo" // expected-warning {{string literal is unused}} expected-error {{missing return in a global function expected to return 'String'; did you mean to return the last expression?}} {{5-5=return }}
0 commit comments