Files
swift-mirror/test/multifile/require-member-layout-dynamic.swift
Doug Gregor c2bc23e734 [Type checker] Finalize referenced members of class extensions.
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.
2018-07-24 16:51:25 -07:00

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")
}
}