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
zeptometer
changed the title
Type error occurs for text mode when pipeline operator is used
False-positive type error in text mode when pipeline operator is used
Jan 18, 2021
Thank you for reporting! The strange behavior seems fixed at a9d762b. Its cause can be seen in d5884a2 (roughly speaking, the original implementation did not take account of occurrences of string generated by the substitution of type variables).
Example:
$ cat hoge.saty() |> (fun () -> `a`)
$ satysfi --text-mode "text" hoge.saty -o main.txt ---- ---- ---- ---- target file: 'main.txt' dump file: 'hoge.satysfi-aux' (will be created) parsing 'hoge.saty' ... ---- ---- ---- ---- type checking 'hoge.saty' ... type check passed. (string) preprocessing 'hoge.saty' ... ---- ---- ---- ---- evaluating texts ... evaluation done. all cross references were solved. ---- ---- ---- ---- output written on 'main.txt'.
$ cat main.txt a
When compiling this
hoge.saty
file with text mode,I got the following type error.
It does not happen when I omit the pipeline operator.
The text was updated successfully, but these errors were encountered: