Skip to content

Commit 2aab125

Browse files
authored
Revert "Turning SE-0066 error back to warning"
1 parent b729f8a commit 2aab125

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2669,7 +2669,7 @@ ERROR(objc_invalid_with_generic_params,none,
26692669
ERROR(objc_convention_invalid,none,
26702670
"%0 is not representable in Objective-C, so it cannot be used"
26712671
" with '@convention(%1)'", (Type, StringRef))
2672-
WARNING(function_type_no_parens,none,
2672+
ERROR(function_type_no_parens,none,
26732673
"single argument function types require parentheses", ())
26742674
NOTE(not_objc_empty_protocol_composition,none,
26752675
"'protocol<>' is not considered '@objc'; use 'AnyObject' instead", ())

test/type/types.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class r21949448 {
157157
}
158158

159159
// SE-0066 - Standardize function type argument syntax to require parentheses
160-
let _ : Int -> Float // expected-warning {{single argument function types require parentheses}} {{9-9=(}} {{12-12=)}}
160+
let _ : Int -> Float // expected-error {{single argument function types require parentheses}} {{9-9=(}} {{12-12=)}}
161161

162162

163163

0 commit comments

Comments
 (0)