(type checker) regression on main in subtyping rules for tuple labels #73207
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
expressions
Feature: expressions
for-in loops
Feature: for-in loops
regression
type checker
Area → compiler: Semantic analysis
Description
forums discussion here: https://forums.swift.org/t/did-the-subtyping-rules-for-tuple-labels-change-in-swift-6/71408
on main, it seems it is no longer allowed to ignore tuple labels when binding to an unlabeled tuple.
Reproduction
Fiddle: https://swiftfiddle.com/?c=H4sIAAAAAAAAA0XOwQqDMAzG8VcJObXQ9QHK2H3XXa1I0egKNQNbC5v47kYQFr7jnx%2FZsEeH48o95Pgj1UGiSim75hV4ovuTy6PV4HnzDHLjZwEVjVShUtZOSWDg32qIfBGNtba1xOtMSyg0qJM5jYvaPcvQYJUPOE7vkr63OUTG%2FQCfa1LelgAAAA%3D%3D
Expected behavior
it should compile as it did in Swift 5.10
Environment
Swift version 6.0-dev (LLVM b3d7c45a25a792f, Swift 81534a6)
Target: x86_64-unknown-linux-gnu
Additional information
No response
The text was updated successfully, but these errors were encountered: