[SR-11601] Assert in relabelParams
when tuple is returned by generic function
#54006
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
good first issue
Good for newcomers
type checker
Area → compiler: Semantic analysis
Environment
master @ b32e82c
Additional Detail from JIRA
md5: 355829bd1c225783feb99cb5920b2d0d
Issue Description:
The following code is clearly incorrect:
But, it hits an assert in the compiler on master instead of reporting an error (I tested on 5.1 and didn't see a crash):
And if I run with `-debug-constraints`, I see:
The text was updated successfully, but these errors were encountered: