Open
Description
Description
No response
Reproduction
protocol P {}
let _: (any P).Type = (any P).self // ok
let _: (any Any).Type = (any Any).self // ew
409 |
410 | protocol P {}
411 | let _: (any Any).Type = (any Any).self
| `- error: expected ',' separator [expected_separator]
412 | let _: (any P).Type = (any P).self
413 |
Expected behavior
No error.
Environment
Swift version 6.1-dev (LLVM 393ce0eca916d0f, Swift e313070d28bae6f)
Additional information
No response
Metadata
Metadata
Assignees
Labels
Feature → types: The `Any` built-in typeA deviation from expected or documented behavior. Also: expected but undesirable behavior.The Swift compiler itselfFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesFeature: expressionsFeature → types: MetatypesArea → compiler: The legacy C++ parserFeature: types