Incorrectly allowed to destructure ()
#67631
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
type checker
Area → compiler: Semantic analysis
Description
Came across this one by accident:
That error is very unhelpful.
Interestingly, something about the indirection is necessary; simpler examples do work as expected:
and
Environment
swift-driver version: 1.75.2 Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
Target: arm64-apple-macosx13.0
The text was updated successfully, but these errors were encountered: