Skip to content

Commit b22ed2d

Browse files
committed
Update ExistentialContainerTests.swift
1 parent 8cc2dda commit b22ed2d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Tests/ExistentialContainerTests/ExistentialContainerTests.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ struct ExistentialContainerTests {
2828
func testSwiftUIAnyViewSE0335() async throws {
2929
let text = Text("")
3030
let anyText: Any = text
31-
let anyView: AnyView? = (anyText as? (any View))?.__eraseToAnyViewSE0335()
32-
#expect(anyView != nil)
31+
#expect(AnyView(anySE0335: anyText) != nil)
3332
}
3433
#endif
3534

0 commit comments

Comments
 (0)