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
257257 for (const Decl *member : members) {
258258 if (member->getModuleContext ()->isStdlibModule ())
259259 break ;
260+ auto VD = dyn_cast<ValueDecl>(member);
261+ if (!VD || !shouldInclude (VD))
262+ continue ;
260263 // TODO: support nested classes.
261264 if (isa<ClassDecl>(member))
262265 continue ;
Original file line number Diff line number Diff line change @@ -60,3 +60,9 @@ public func makeRecordConfig() -> RecordConfig {
6060public func makeAudioFileType( ) -> AudioFileType {
6161 return AudioFileType . CAF ( AudioFileType . SubType ( id: 42 ) )
6262}
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