Skip to content

Commit 2f38584

Browse files
committed
Add regression test for fixed crasher
1 parent 8061358 commit 2f38584

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// RUN: not %target-swift-frontend -typecheck %s
2+
3+
public protocol LocalizedError : Error {
4+
var errorDescription: String? { get }
5+
}
6+
7+
public enum AFError: Error {}
8+
extension AFError {
9+
public var isInvalidURLError: Bool {
10+
11+
extension AFError: LocalizedError {
12+
public var errorDescription: String? {
13+
return ""

0 commit comments

Comments
 (0)