AnyView returned in functions with generic Views (SwiftUI)

For me Swift Playgrounds (Swift 5.10 I believe) prints Text but Xcode 16.1 (Swift 6.0.2) prints AnyView.

UPDATE: But in Xcode 16.1 this actually only happen in debug build, release build prints Text as expected. I've found this: Any info on the _typeEraser attribute.