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 @@ -412,6 +412,7 @@ namespace {
412
412
PAIRCASE (SpaceKind::BooleanConstant, SpaceKind::BooleanConstant):
413
413
return this ->getBoolValue () == other.getBoolValue ();
414
414
415
+ PAIRCASE (SpaceKind::BooleanConstant, SpaceKind::Constructor):
415
416
PAIRCASE (SpaceKind::BooleanConstant, SpaceKind::UnknownCase):
416
417
return false ;
417
418
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