Skip to content

Commit 7d0a32f

Browse files
author
Gabor Horvath
committed
[cxx-interop] Class declaration order does not matter
Looking through the old issues found one that we already fixed. Adding a a test to close the issue. Closing #70336. rdar://119405019
1 parent 31408fe commit 7d0a32f

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)