Skip to content

Commit d1db590

Browse files
committed
[Tests] Adjust a couple of string interpolation test-cases
`test/Constraints/interpolation_segments.swift` has been removed because interpolations are now type-checked together with their context, so the separate type-checking test no longer applies.
1 parent d283cf5 commit d1db590

File tree

2 files changed

+4
-22
lines changed

2 files changed

+4
-22
lines changed

test/Constraints/closures.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,10 @@ extension P_47606 {
624624
let u = rdar33296619().element //expected-error {{cannot find 'rdar33296619' in scope}}
625625

626626
[1].forEach { _ in
627-
_ = "\(u)"
627+
_ = "\(u)" // No diagnostic because `u` is already diagnosed and marked as invalid
628+
}
629+
630+
[1].forEach { _ in
628631
_ = 1 + "hi" // expected-error {{binary operator '+' cannot be applied to operands of type 'Int' and 'String'}}
629632
// expected-note@-1 {{overloads for '+' exist with these partially matching parameter lists: (Int, Int), (String, String)}}
630633
}

test/Constraints/interpolation_segments.swift

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)