-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathlocal.test
More file actions
118 lines (105 loc) · 3.51 KB
/
Copy pathlocal.test
File metadata and controls
118 lines (105 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
========================================================================
Variables completion
========================================================================
fun foo() {
val some = 10;
val someOther = "hello";
some<caret>
}
------------------------------------------------------------------------
5 some int
5 someOther slice
========================================================================
Variables completion from tuple declaration
========================================================================
fun foo() {
val [some, someOther] = [10, "hello"];
some<caret>
}
------------------------------------------------------------------------
5 some int
5 someOther slice
========================================================================
Variable completion from catch clause
========================================================================
fun foo() {
try {
} catch (error) {
err<caret>
}
}
------------------------------------------------------------------------
5 error int
========================================================================
Variables completion from catch clause
========================================================================
fun foo() {
try {
} catch (error, errorData) {
err<caret>
}
}
------------------------------------------------------------------------
5 error int
5 errorData unknown
========================================================================
Variables completion from match expression
========================================================================
fun foo() {
match (val data = 100) {
10 => {
return dat<caret>
}
}
}
------------------------------------------------------------------------
5 data int
========================================================================
Parameters completion
========================================================================
fun foo(someParameter: int) {
val some = 10;
some<caret>
}
------------------------------------------------------------------------
5 some int
5 someParameter int
========================================================================
Completion inside incomplete if
========================================================================
fun foo(someParameter: int) {
if (some<caret>)
}
------------------------------------------------------------------------
5 someParameter int
========================================================================
Completion inside incomplete match
========================================================================
fun foo(someParameter: int) {
match (some<caret>)
}
------------------------------------------------------------------------
5 someParameter int
========================================================================
Variable completion in match arm
========================================================================
fun foo() {
val some = 10;
val someOther = "hello";
match (some) {
10 => {
some<caret>
}
}
}
------------------------------------------------------------------------
5 some int
5 someOther slice
========================================================================
No type parameters completion as value
========================================================================
fun foo<TName, TName2>() {
TNam<caret>;
}
------------------------------------------------------------------------
No completion items