mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When we reference a member of a class extension, we need to compute its overrides, @objc bit, and ‘dynamic’ status because SILGen may rely on them. Do that consistently by adding such members to the list of declarations to “finalize”. Rework the finalization logic to handle the computation of each of those bits, and never remove a finalized declaration from the set: rather, process new declarations as they enter the set, to avoid looping or extra state bits. Fixes rdar://problem/42440686.
12 lines
330 B
Swift
12 lines
330 B
Swift
// RUN: %target-swift-frontend -module-name test -emit-ir -primary-file %s %S/Inputs/require-member-layout-dynamic-other.swift -import-objc-header %S/Inputs/require-member-layout-dynamic-bridging.h -sdk %sdk -o %t.o
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
public class Foo: NSObject {
|
|
func foo() {
|
|
bar("hello")
|
|
}
|
|
}
|