forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crash when considering invalid binary operator function for resol…
…ution <rdar://23719809&23720006> This fixes compiler crashes resulting from an invalid FuncDecl which is later considered while resolving a binary application.
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
validation-test/compiler_crashers_2_fixed/0036-rdar23719809.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// RUN: not %target-swift-frontend %s -parse | ||
|
||
// rdar://problem/23719809&23720006 | ||
|
||
func ~=() {} | ||
func ~=(_: Int) {} | ||
func ~=(_: () -> ()) {} | ||
|
||
switch 0 { | ||
case 0: | ||
break | ||
} |