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.
1 parent 191fcc4 commit 29ae605Copy full SHA for 29ae605
test/Constraints/rdar62842651.swift
@@ -0,0 +1,12 @@
1
+// RUN: %target-swift-frontend -emit-sil -verify %s | %FileCheck %s
2
+
3
+class A {}
4
+class B: A {}
5
6
+func test<T>(_ type: T.Type) -> T? {
7
+ fatalError()
8
+}
9
10
+// CHECK: [[RESULT:%.*]] = function_ref @$s12rdar628426514testyxSgxmlF
11
+// CHECK-NEXT: apply [[RESULT]]<B>({{.*}})
12
+let _: A? = test(B.self)
0 commit comments