Skip to content

Commit f0927f2

Browse files
committed
Update test case for (worse) diagnostics on 5.1
1 parent 1522144 commit f0927f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Constraints/function_builder_diags.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,13 @@ func acceptInt(_: Int, _: () -> Void) { }
177177

178178
// SR-11350 crash due to improper recontextualization.
179179
func erroneousSR11350(x: Int) {
180-
tuplify(true) { b in
180+
tuplify(true) { b in // expected-error{{value of type 'Optional<()>' has no member 'domap'}}
181181
17
182182
x + 25
183183
Optional(tuplify(false) { b in
184184
if b {
185185
acceptInt(0) { }
186186
}
187-
}).domap(0) // expected-error{{value of type 'Optional<()>' has no member 'domap'}}
187+
}).domap(0)
188188
}
189189
}

0 commit comments

Comments
 (0)