Skip to content

Commit 218c960

Browse files
committed
[test] Add a test for previously crashing interface gen. rdar://23544224
1 parent 2af5078 commit 218c960

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
public class C {
2+
public func f1() {
3+
{ (error : NSError?) -> Void in
4+
dispatch_async(dispatch_get_main_queue(), { () -> Void in
5+
})
6+
}
7+
}
8+
}

test/SourceKit/InterfaceGen/gen_swift_source.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@
1111

1212
// RUN: %sourcekitd-test -req=interface-gen %S/Inputs/UnresolvedExtension.swift -- %S/Inputs/UnresolvedExtension.swift | FileCheck -check-prefix=CHECK2 %s
1313
// CHECK2: extension ET
14+
15+
// RUN: %sourcekitd-test -req=interface-gen %S/Inputs/Foo3.swift -- %S/Inputs/Foo3.swift | FileCheck -check-prefix=CHECK3 %s
16+
// CHECK3: public class C {

0 commit comments

Comments
 (0)