Skip to content

Commit 35aa75a

Browse files
committed
Enable another casting test
I think this exercises the same optimizer path that's breaking another test I've been staring at.
1 parent 5e1e3a1 commit 35aa75a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/Casting/Casts.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -522,12 +522,7 @@ class ClassInt: Equatable, Hashable {
522522
static func == (lhs: ClassInt, rhs: ClassInt) -> Bool {return true}
523523
func hash(into hasher: inout Hasher) {}
524524
}
525-
CastsTests.test("AnyHashable(Class) -> Obj-C -> Class")
526-
.skip(.custom({
527-
!_isDebugAssertConfiguration()
528-
},
529-
reason: "Cast optimizer breaks this test"))
530-
.code {
525+
CastsTests.test("AnyHashable(Class) -> Obj-C -> Class") {
531526
let a = ClassInt()
532527
let b = runtimeCast(a, to: AnyHashable.self)!
533528
let c = _bridgeAnythingToObjectiveC(b)

0 commit comments

Comments
 (0)