mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #37057 from LucianoPAlmeida/placeholder-checkedcast-warn
[Sema] Do not attempt warn extraneous checked cast for placeholder types
This commit is contained in:
@@ -6448,7 +6448,8 @@ static ConstraintFix *maybeWarnAboutExtraneousCast(
|
||||
return nullptr;
|
||||
|
||||
// Both types have to be fixed.
|
||||
if (fromType->hasTypeVariable() || toType->hasTypeVariable())
|
||||
if (fromType->hasTypeVariable() || toType->hasTypeVariable() ||
|
||||
fromType->hasPlaceholder() || toType->hasPlaceholder())
|
||||
return nullptr;
|
||||
|
||||
SmallVector<LocatorPathElt, 4> path;
|
||||
|
||||
Reference in New Issue
Block a user