File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -6479,6 +6479,11 @@ static bool shouldWarnAboutPotentialWitness(
6479
6479
if (groupChecker.isCoveredMember (witness))
6480
6480
return false ;
6481
6481
6482
+ // If the kinds of the requirement and witness are different, there's
6483
+ // nothing to warn about.
6484
+ if (req->getKind () != witness->getKind ())
6485
+ return false ;
6486
+
6482
6487
// If the warning couldn't be suppressed, don't warn.
6483
6488
if (!canSuppressPotentialWitnessWarningWithMovement (req, witness) &&
6484
6489
!canSuppressPotentialWitnessWarningWithNonObjC (req, witness))
Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-frontend %s -emit-ir -o -
2
+
3
+ func f( ) {
4
+ enum NotAnError : Swift . Error {
5
+ case nope( length: Int )
6
+ }
7
+ }
8
+
You can’t perform that action at this time.
0 commit comments