My understanding from SE-0335 was that using a protocol as a variable’s type without writing any would be an error in Swift 6 mode, but this doesn't match what I’m seeing.
For example, in Xcode 16 beta 6, the evolution proposal’s example that demonstrates things that should be an error in Swift 6 seems to be compiling fine for me.
In Xcode16.2, I found a strange issue:
If 'P' is defined in different module, we must add 'any' in 'bar';
If they are defined in the same file, it's ok to omit 'any'.
I don't known why?