Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0128-rdar35088384.swift
Michael Gottesman 13d19e5a23 %swift-target-frontend => %target-swift-frontend.
Looks like it was a typo.
2018-01-16 10:48:04 -08:00

13 lines
347 B
Swift

// RUN: %target-swift-frontend -typecheck -verify %s
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])