Skip to content

Commit dd2cced

Browse files
author
Nathan Hawes
committed
[test][IDE] Test interface generation with grouping and synthesize extensions on
We weren't testing this combination previously. Resolves rdar://problem/57009035
1 parent 4293772 commit dd2cced

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/SourceKit/InterfaceGen/gen_stdlib.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,11 @@ var x: Int
7777
// CHECK-FLOAT-NOT: Zip2Sequence
7878
// CHECK-FLOAT-NOT: struct Bool
7979
// CHECK-FLOAT-NOT: struct Int
80+
81+
82+
// RUN: %sourcekitd-test -req=interface-gen -module Swift -group-name Misc -synthesized-extension > %t.Misc.response
83+
// RUN: %FileCheck -check-prefix=CHECK-ERROR -input-file %t.Misc.response %s
84+
// RUN: %sourcekitd-test -req=interface-gen -module Swift -interested-usr s:s5ErrorP -synthesized-extension > %t.Error.response
85+
// RUN: %FileCheck -check-prefix=CHECK-ERROR -input-file %t.Error.response %s
86+
87+
// CHECK-ERROR: protocol Error

0 commit comments

Comments
 (0)