Skip to content

Commit 0be0e4c

Browse files
authored
Merge pull request #17050 from rudkx/sr7884
2 parents 7601d50 + 27c0da3 commit 0be0e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Constraints/sr7884.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ func f<T>(_ x: T?) -> T? {
99
return x
1010
}
1111

12-
let r = f(1) // calls optional variant
12+
let r = f(1)
1313
let _ = r! // expected-error {{cannot force unwrap value of non-optional type 'Int'}}
1414

1515
// SR-7899

0 commit comments

Comments
 (0)