Files
swift-mirror/validation-test/compiler_crashers_fixed/0128-rdar35088384.swift
Hamish Knight 4e811c3a88 [test] Merge crasher directories
There is no longer much of a good reason to keep these separate,
merge them.
2025-10-18 12:51:30 +01:00

13 lines
333 B
Swift

// RUN: %target-typecheck-verify-swift
protocol Command {}
struct A : Command {}
struct B : Command {}
// This used to crash in Xcode 9 GM, and fails with a diagnostic in more
// recent swift-4.0-branch builds, because we incorrectly infer the type
// of the array literal as [Any].
let a = Array<Command.Type>([A.self, B.self])