mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
If possible, add imported members to the StructDecl's LookupTable rather than adding them directly as members. This will fix the issues with ordering that #39436 poorly attempted to solve during IRGen. This also allows us to break out most of the test changes from #39436.
11 lines
354 B
Swift
11 lines
354 B
Swift
// RUN: %target-swift-ide-test -print-module -module-to-print=MutableMembers -I %S/Inputs -source-filename=x -enable-cxx-interop | %FileCheck %s
|
|
|
|
// CHECK: struct HasPublicMutableMember {
|
|
// CHECK: mutating func foo() -> Int32
|
|
// CHECK: var a: Int32
|
|
// CHECK: }
|
|
|
|
// CHECK: struct HasPrivateMutableMember {
|
|
// CHECK: mutating func bar()
|
|
// CHECK: }
|