mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
COMDAT can only be applied to definitions, not declarations. This manifested in builds of llbuild with SwiftPM on Windows. The nominal type descriptor accessor declaration was marked as COMDAT.
5 lines
54 B
Swift
5 lines
54 B
Swift
public func g() {
|
|
var a: [Int] = []
|
|
a.append(1)
|
|
}
|