We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8e49722 + c5182e8 commit 74c6946Copy full SHA for 74c6946
validation-test/compiler_crashers_2_fixed/0128-rdar35088384.swift
@@ -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