Skip to content

Commit dce4c7f

Browse files
committed
[Tests] NFC: Remove FIXME and diagnostic from a fixed test-case
1 parent 11e398d commit dce4c7f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/Constraints/bidirectional_conversions.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import CoreGraphics
66

77
/////////////
88

9-
struct G<T> { // expected-note {{arguments to generic parameter 'T' ('CGFloat?' and 'CGFloat') are expected to be equal}}
9+
struct G<T> {
1010
var t: T
1111
}
1212

@@ -32,8 +32,7 @@ func foo4(x: (() -> ())?, y: @escaping @convention(block) () -> ()) -> G<() -> (
3232

3333
func foo5(x: CGFloat?, y: Double) -> G<CGFloat> {
3434
let g = G(t: x ?? y)
35-
// FIXME
36-
return g // expected-error {{cannot convert return expression of type 'G<CGFloat?>' to return type 'G<CGFloat>'}}
35+
return g
3736
}
3837

3938
func foo6(x: Double?, y: CGFloat) -> G<Double> {

0 commit comments

Comments
 (0)