Skip to content

Commit b2eda2f

Browse files
committed
unexpectedly fixed an old bug?
1 parent 344ea67 commit b2eda2f

File tree

1 file changed

+10
-18
lines changed
  • hkmc2/shared/src/test/mlscript/backlog

1 file changed

+10
-18
lines changed

hkmc2/shared/src/test/mlscript/backlog/UCS.mls

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,10 @@ if
8181
let audits = new Set()
8282
//│ audits = Set{}
8383

84-
:fixme
8584
if audits.has(1) === true do
8685
print("ok")
8786
else
8887
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
9688

9789
// ——— ——— ———
9890

@@ -116,7 +108,7 @@ class Some(val v)
116108
Some(1) is
117109
Some of [process, rest] do "hi"
118110
//│ ╔══[ERROR] Unrecognized pattern (infix operator)
119-
//│ ║ l.117: Some of [process, rest] do "hi"
111+
//│ ║ l.109: Some of [process, rest] do "hi"
120112
//│ ╙── ^^^^^^^^^^^^^^^^^^^^^^^
121113
//│ = false
122114

@@ -166,10 +158,10 @@ let foo =
166158
case
167159
Tuple(...elements) then elements
168160
//│ ╔══[ERROR] mismatched arity: expect 3, found 1
169-
//│ ║ l.167: Tuple(...elements) then elements
161+
//│ ║ l.159: Tuple(...elements) then elements
170162
//│ ╙── ^^^^^^^^^^^^^^^^^^
171163
//│ ╔══[ERROR] Unrecognized pattern (spread)
172-
//│ ║ l.167: Tuple(...elements) then elements
164+
//│ ║ l.159: Tuple(...elements) then elements
173165
//│ ╙── ^^^^^^^^
174166
//│ foo = [function]
175167

@@ -187,28 +179,28 @@ fun foo(x) = if x is Foo.
187179
Bar then "Bar"
188180
Foo then "Foo"
189181
//│ ╔══[ERROR] Unrecognized pattern split.
190-
//│ ║ l.186: fun foo(x) = if x is Foo.
182+
//│ ║ l.178: fun foo(x) = if x is Foo.
191183
//│ ╙── ^^^
192184
//│ ╔══[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.
194186
//│ ╙── ^
195187
//│ ╔══[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.
197189
//│ ╙── ^
198190

199191
fun foo(x) = if x is Foo
200192
.Bar then "Bar"
201193
.Foo then "Foo"
202194
//│ ╔══[PARSE ERROR] Expected an expression; found selector instead
203-
//│ ║ l.200: .Bar then "Bar"
195+
//│ ║ l.192: .Bar then "Bar"
204196
//│ ╙── ^^^^
205197
//│ ╔══[PARSE ERROR] Unexpected selector here
206-
//│ ║ l.200: .Bar then "Bar"
198+
//│ ║ l.192: .Bar then "Bar"
207199
//│ ╙── ^^^^
208200
//│ ╔══[ERROR] Unrecognized pattern split.
209-
//│ ║ l.199: fun foo(x) = if x is Foo
201+
//│ ║ l.191: fun foo(x) = if x is Foo
210202
//│ ║ ^^^
211-
//│ ║ l.200: .Bar then "Bar"
203+
//│ ║ l.192: .Bar then "Bar"
212204
//│ ╙── ^^
213205

214206
// ——— ——— ———

0 commit comments

Comments
 (0)