File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -418,6 +418,7 @@ namespace {
418418 PAIRCASE (SpaceKind::BooleanConstant, SpaceKind::BooleanConstant):
419419 return this ->getBoolValue () == other.getBoolValue ();
420420
421+ PAIRCASE (SpaceKind::BooleanConstant, SpaceKind::Constructor):
421422 PAIRCASE (SpaceKind::BooleanConstant, SpaceKind::UnknownCase):
422423 return false ;
423424
Original file line number Diff line number Diff line change 1+ // RUN: not %target-swift-frontend -typecheck %s
2+
3+ // N.B.: Requires a no-asserts build to reproduce, otherwise this hits an
4+ // assertion in type check pattern.
5+ // REQUIRES: no_asserts
6+
7+ indirect enum BadOverload {
8+ case one( Bool , other: Void )
9+ case one( Bool ? )
10+ }
11+
12+ func crash( _ x: BadOverload ) {
13+ switch $0 {
14+ case . one( false ? ) :
15+ break
16+ }
17+ }
18+
You can’t perform that action at this time.
0 commit comments