Skip to content

Commit 74c6946

Browse files
authored
Merge pull request #12615 from slavapestov/yay-already-fixed
Add a regression test for rdar://problem/35088384
2 parents 8e49722 + c5182e8 commit 74c6946

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// RUN: %swift-target-frontend -typecheck -verify %s
2+
3+
protocol Command {}
4+
5+
struct A : Command {}
6+
struct B : Command {}
7+
8+
// This used to crash in Xcode 9 GM, and fails with a diagnostic in more
9+
// recent swift-4.0-branch builds, because we incorrectly infer the type
10+
// of the array literal as [Any].
11+
12+
let a = Array<Command.Type>([A.self, B.self])

0 commit comments

Comments
 (0)