File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
validation-test/IDE/stress_tester_issues_fixed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-ide-test --code-completion --source-filename %s --code-completion-token=COMPLETE | %FileCheck %s
2
+
3
+ protocol View2 { }
4
+
5
+ extension Never : View2 { }
6
+
7
+ struct Text2 : View2 { }
8
+
9
+ @resultBuilder struct ViewBuilder2 {
10
+ static func buildBlock( ) -> Never { fatalError ( ) }
11
+ static func buildBlock< Content> ( _ content: Content ) -> Content where Content : View2 { fatalError ( ) }
12
+ }
13
+
14
+ struct MysteryIsland2 {
15
+ let chance : Int = 2
16
+ }
17
+
18
+ struct VStack2 < Content> : View2 where Content : View2 {
19
+ init ( @ViewBuilder2 content: ( ) -> Content ) { fatalError ( ) }
20
+ }
21
+
22
+ struct MysteryIslandDetail {
23
+ let island : MysteryIsland2
24
+
25
+ @ViewBuilder2 var body : some View2 {
26
+ let b = " \( island. #^COMPLETE^#chance) "
27
+ VStack2 ( ) { }
28
+ }
29
+ }
30
+
31
+ // CHECK: Begin completions, 2 items
32
+ // CHECK-DAG: Keyword[self]/CurrNominal: self[#MysteryIsland2#]; name=self
33
+ // CHECK-DAG: Decl[InstanceVar]/CurrNominal/TypeRelation[Convertible]: chance[#Int#]; name=chance
34
+ // CHECK: End completions
You can’t perform that action at this time.
0 commit comments