Skip to content

Commit 529ec41

Browse files
authored
Merge pull request #82882 from Xazax-hun/class-decl-order
[cxx-interop] Class declaration order does not matter
2 parents 140ca96 + 7d0a32f commit 529ec41

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/Interop/SwiftToCxx/class/swift-class-ordering.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,13 @@ public class SwiftNode {
99
public struct SwiftLinkedList {
1010
public var head: SwiftNode
1111
}
12+
13+
public class B
14+
{
15+
public init() {}
16+
}
17+
18+
public class A
19+
{
20+
public init(_ b: B) {}
21+
}

0 commit comments

Comments
 (0)