81
81
let audits = new Set()
82
82
//│ audits = Set{}
83
83
84
- :fixme
85
84
if audits.has(1) === true do
86
85
print("ok")
87
86
else
88
87
1
89
- //│ ╔══[ERROR] The following branches are unreachable.
90
- //│ ╟── Because the previous split is full.
91
- //│ ║ l.85: if audits.has(1) === true do
92
- //│ ║ ^^^^^^^^^^^^^^^^^^^^^^^^^
93
- //│ ║ l.86: print("ok")
94
- //│ ╙── ^^^^^^^^^^^^^
95
- //│ = 1
96
88
97
89
// ——— ——— ———
98
90
@@ -116,7 +108,7 @@ class Some(val v)
116
108
Some(1) is
117
109
Some of [process, rest] do "hi"
118
110
//│ ╔══[ERROR] Unrecognized pattern (infix operator)
119
- //│ ║ l.117 : Some of [process, rest] do "hi"
111
+ //│ ║ l.109 : Some of [process, rest] do "hi"
120
112
//│ ╙── ^^^^^^^^^^^^^^^^^^^^^^^
121
113
//│ = false
122
114
@@ -166,10 +158,10 @@ let foo =
166
158
case
167
159
Tuple(...elements) then elements
168
160
//│ ╔══[ERROR] mismatched arity: expect 3, found 1
169
- //│ ║ l.167 : Tuple(...elements) then elements
161
+ //│ ║ l.159 : Tuple(...elements) then elements
170
162
//│ ╙── ^^^^^^^^^^^^^^^^^^
171
163
//│ ╔══[ERROR] Unrecognized pattern (spread)
172
- //│ ║ l.167 : Tuple(...elements) then elements
164
+ //│ ║ l.159 : Tuple(...elements) then elements
173
165
//│ ╙── ^^^^^^^^
174
166
//│ foo = [function]
175
167
@@ -187,28 +179,28 @@ fun foo(x) = if x is Foo.
187
179
Bar then "Bar"
188
180
Foo then "Foo"
189
181
//│ ╔══[ERROR] Unrecognized pattern split.
190
- //│ ║ l.186 : fun foo(x) = if x is Foo.
182
+ //│ ║ l.178 : fun foo(x) = if x is Foo.
191
183
//│ ╙── ^^^
192
184
//│ ╔══[ERROR] Cannot use this identifier as an extractor
193
- //│ ║ l.186 : fun foo(x) = if x is Foo.
185
+ //│ ║ l.178 : fun foo(x) = if x is Foo.
194
186
//│ ╙── ^
195
187
//│ ╔══[ERROR] Cannot use this identifier as an extractor
196
- //│ ║ l.186 : fun foo(x) = if x is Foo.
188
+ //│ ║ l.178 : fun foo(x) = if x is Foo.
197
189
//│ ╙── ^
198
190
199
191
fun foo(x) = if x is Foo
200
192
.Bar then "Bar"
201
193
.Foo then "Foo"
202
194
//│ ╔══[PARSE ERROR] Expected an expression; found selector instead
203
- //│ ║ l.200 : .Bar then "Bar"
195
+ //│ ║ l.192 : .Bar then "Bar"
204
196
//│ ╙── ^^^^
205
197
//│ ╔══[PARSE ERROR] Unexpected selector here
206
- //│ ║ l.200 : .Bar then "Bar"
198
+ //│ ║ l.192 : .Bar then "Bar"
207
199
//│ ╙── ^^^^
208
200
//│ ╔══[ERROR] Unrecognized pattern split.
209
- //│ ║ l.199 : fun foo(x) = if x is Foo
201
+ //│ ║ l.191 : fun foo(x) = if x is Foo
210
202
//│ ║ ^^^
211
- //│ ║ l.200 : .Bar then "Bar"
203
+ //│ ║ l.192 : .Bar then "Bar"
212
204
//│ ╙── ^^
213
205
214
206
// ——— ——— ———
0 commit comments