Commit Graph

1 Commits

Author SHA1 Message Date
Pavel Yaskevich
0e6260dd89 [Diagnostics] Special case assignment between nominal types with optional promotion
Skip fixing situation where source and destination of assignment are both
nominal types with different optionality until restriction is attempted.

Otherwise fix could be too greedy and diagnose valid code if all of the
types are known in advance.

Resolves: SR-13951
Resolves: rdar://problem/72166791
2020-12-11 20:49:43 -08:00