-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
AnyFeature → types: The `Any` built-in typeFeature → types: The `Any` built-in typebugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfexistentialsFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesexpressionsFeature: expressionsFeature: expressionsmetatypesFeature → types: MetatypesFeature → types: MetatypesparserArea → compiler: The legacy C++ parserArea → compiler: The legacy C++ parserswift 6.0typesFeature: typesFeature: types
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
AnyFeature → types: The `Any` built-in typeFeature → types: The `Any` built-in typebugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfexistentialsFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesFeature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased valuesexpressionsFeature: expressionsFeature: expressionsmetatypesFeature → types: MetatypesFeature → types: MetatypesparserArea → compiler: The legacy C++ parserArea → compiler: The legacy C++ parserswift 6.0typesFeature: typesFeature: types