You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
The main.k:
schemaFold:
l: [any]
acc: anyfunc: (any, any) ->anyvalue: any=acciflen(l) ==0elseFold {
# `l` has been replaced by `l[1::]`. When the size of `l` is 1, the next line should raise an errorl: l[1::]
# the `l` has been replaced in the previous line, when the size of `l` is 1, error here !acc: func(acc, l[0])
func: func
}.valueflod=Fold {
l: [1, 2, 3, 4, 5],
acc: 0,
func: lambdax, y { x+y }
}.value
2. What did you expect to see? (Required)
An error raised.
3. What did you see instead (Required)
No errors, and an result got:
flod: 15
4. What is your KCL components version? (Required)
The main branch of KCL
The text was updated successfully, but these errors were encountered:
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
The
main.k
:2. What did you expect to see? (Required)
An error raised.
3. What did you see instead (Required)
No errors, and an result got:
4. What is your KCL components version? (Required)
The main branch of KCL
The text was updated successfully, but these errors were encountered: