acton icon indicating copy to clipboard operation
acton copied to clipboard

List patterns incorrectly translated

Open nordlander opened this issue 10 months ago • 0 comments

Acton Version

0.24.1.20250226.13.5.28

Steps to Reproduce and Observed Behavior

Compiling

def fun(x):
    [a, b] = x.split(":")

leads to a crash in the deactorizer pass, apparently because of a missing witness parameter in the type-checker output.

Expected Behavior

Should compile and be equivalent to

def fun(x):
    temp = x.split(":")
    a = temp[0]
    b = temp[1]

nordlander avatar Mar 05 '25 10:03 nordlander