Skip to content

Commit 1b7da04

Browse files
committed
Update test error message
1 parent 1cc1e58 commit 1b7da04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Sema/suppress-argument-labels-in-types.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,5 +220,5 @@ func testIntermediateCoercions() {
220220
func iuoReturning() -> Int! {}
221221
_ = (iuoReturning as () -> Int?)()
222222
_ = (iuoReturning as Magic)()
223-
_ = (iuoReturning as () -> Int)() // expected-error {{'() -> Int?' is not convertible to '() -> Int'; did you mean to use 'as!' to force downcast?}}
223+
_ = (iuoReturning as () -> Int)() // expected-error {{cannot convert value of type '() -> Int?' to type '() -> Int' in coercion}}
224224
}

0 commit comments

Comments
 (0)