You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to define expected type/flag matching behavior for borrowing and consuming parameters that does not depend on the performance hack(s).
Environment
Swift compiler main branch.
Additional information
No response
The text was updated successfully, but these errors were encountered:
xedin
added
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
labels
Oct 13, 2024
This is actually even worse than just ambiguity because the hack always prefers the first overload which means that flipping overloads around would result in a different pick.
Description
One of the test-cases introduced by #76834 depends on a type-checker hack that applies only to initializers - https://github.com/swiftlang/swift/blob/main/lib/Sema/CSSimplify.cpp#L9843-L9855. Removal of this hack makes the code ambiguous.
Reproduction
Without perf hack this produces:
Expected behavior
We need to define expected type/flag matching behavior for
borrowing
andconsuming
parameters that does not depend on the performance hack(s).Environment
Swift compiler main branch.
Additional information
No response
The text was updated successfully, but these errors were encountered: