Skip to content

Commit

Permalink
Add regression test to close #43070
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLatsis committed Jun 22, 2022
1 parent 2f5d603 commit d5d85b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/Interpreter/collection_casts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ a_array_3?.forEach { $0.preen() }
// CHECK-NEXT: A10
// CHECK-NEXT: A20

let a_array_4 = preening_array_1 as! [A]
a_array_4.forEach { $0.preen() }
// CHECK-NEXT: A5
// CHECK-NEXT: A10
// CHECK-NEXT: A20

}

do {
Expand Down

0 comments on commit d5d85b5

Please sign in to comment.