Bad diagnostic for any P!
#72662
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
existentials
Feature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased values
good first issue
Good for newcomers
implicitly unwrapped optionals
Feature → types: Implicitly unwrapped optional types, aka IUO
swift 6.0
type checker
Area → compiler: Semantic analysis
TypeResolver
types
Feature: types
unexpected behavior
Bug: Unexpected behavior or incorrect output
Description
No response
Reproduction
Expected behavior
A single error,
optional 'any' type must be written '(any P)!'
, as in the case oflet _: any P?
.Environment
Swift version 6.0-dev (LLVM 48dc0c6fa01ce9e, Swift 19fbe5b)
Target: x86_64-apple-macosx14.0
Additional information
This https://github.com/apple/swift/labels/good%20first%20issue will suit an experienced Swift user.
The text was updated successfully, but these errors were encountered: