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 54155fe commit 0e06792Copy full SHA for 0e06792
validation-test/compiler_crashers_2_fixed/sr10201.swift
@@ -0,0 +1,37 @@
1
+// RUN: %target-swift-frontend -typecheck -verify %s
2
+
3
+struct A {
4
+ typealias Value = Int
5
+}
6
7
+protocol B {
8
+ typealias Value = A.Value
9
+ typealias T = String
10
11
12
+protocol NestedProtocol {
13
+ typealias _B = B
14
15
16
+struct Something: NestedProtocol {
17
18
+ struct InnerTest: _B {
19
+ var value: Value = 42
20
+ var t: T = "wait what?"
21
+ }
22
23
24
+protocol X {}
25
26
+protocol Y {
27
+ typealias _X = X
28
+ var x: _X { get }
29
30
31
+struct Struct: Y {
32
+ var x: _X = __X()
33
34
35
+extension Struct {
36
+ struct __X: _X {}
37
0 commit comments