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 7bbb63a + b9cb2f3 commit e7a8290Copy full SHA for e7a8290
test/Constraints/rdar139913219.swift
@@ -0,0 +1,14 @@
1
+// RUN: %target-typecheck-verify-swift -verify-ignore-unknown
2
+
3
+// rdar://139913219 - Make sure we don't crash.
4
5
+func bar(_ x: Int.Type, _: Int) {}
6
+func bar<T>(_ x: T.Type, _: Int) {}
7
8
+func foo() {
9
+ // FIXME: We shouldn't be failing to produce a diagnostic.
10
+ // Once resolved, remove '-verify-ignore-unknown'
11
+ bar(X<Int?>.self, .zero)
12
+ // expected-error@-1 {{cannot find 'X' in scope}}
13
+ // expected-error@-2 {{failed to produce diagnostic for expression}}
14
+}
0 commit comments