Files
swift-mirror/lib/Sema/PreCheckExpr.cpp
Pavel Yaskevich 5ac8182035 [PreCheckExpr] Don't silence errors while resolving types for 'literal via coercion' transform
Since `resolveType` caches its results, silencing errors would mean
that the error would be lost and each subsequent call to `resolveType`
would get `ErrorType` back. This ultimately leads to the compiler
failing to produce a diagnostic when invalid type is used in `init`
call.

Resolves: rdar://94888357
2022-06-23 21:53:42 -07:00

81 KiB