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 b3578ab commit acef026Copy full SHA for acef026
validation-test/compiler_crashers_2_fixed/sr13727.swift
@@ -0,0 +1,13 @@
1
+// RUN: %target-swift-frontend -emit-ir %s
2
+
3
+protocol Projection {
4
+ associatedtype Root
5
+ associatedtype Path: PartialKeyPath<Root>
6
+ static var path: Path { get }
7
+}
8
9
+struct ProjectKey<Key, Value>: Projection {
10
+ typealias Root = (Key, Value)
11
+ typealias Path = KeyPath<(Key, Value), Key>
12
+ static var path: KeyPath<(Key, Value), Key> { \.0 }
13
0 commit comments