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 23, 2022
1 parent af568b5 commit d4e67a7
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 d4e67a7

Please sign in to comment.