File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
test/Interop/SwiftToCxx/structs Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,9 @@ class DeclAndTypePrinter::Implementation
257
257
for (const Decl *member : members) {
258
258
if (member->getModuleContext ()->isStdlibModule ())
259
259
break ;
260
+ auto VD = dyn_cast<ValueDecl>(member);
261
+ if (!VD || !shouldInclude (VD))
262
+ continue ;
260
263
// TODO: support nested classes.
261
264
if (isa<ClassDecl>(member))
262
265
continue ;
Original file line number Diff line number Diff line change @@ -60,3 +60,9 @@ public func makeRecordConfig() -> RecordConfig {
60
60
public func makeAudioFileType( ) -> AudioFileType {
61
61
return AudioFileType . CAF ( AudioFileType . SubType ( id: 42 ) )
62
62
}
63
+
64
+ public class TestObject {
65
+ enum CustomError : Swift . Error {
66
+ case invalid
67
+ }
68
+ }
You can’t perform that action at this time.
0 commit comments