mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This fixes compiler crashes resulting from an invalid FuncDecl which is later considered while resolving a binary application.
13 lines
171 B
Swift
13 lines
171 B
Swift
// RUN: not %target-swift-frontend %s -parse
|
|
|
|
// rdar://problem/23719809&23720006
|
|
|
|
func ~=() {}
|
|
func ~=(_: Int) {}
|
|
func ~=(_: () -> ()) {}
|
|
|
|
switch 0 {
|
|
case 0:
|
|
break
|
|
}
|