075: [a] = "xy" matched incorrectly

↑up

Overview

Following program should cause an error, but executed incorrectly:

main = print a
  where [a] = "xy"

With Bunny 0.9.0, the program prints 'x' .

調査ログ

2021-10-24 (Sun)

ひさびさの全 issue 状況確認の一環で。

unno@unno-FMVD70GN7G ~/work/bissues/075 
$ cat b075.hs 
main = print a
  where [a] = "xy"
unno@unno-FMVD70GN7G ~/work/bissues/075 
$ runhaskell b075.hs 
b075.hs: b075.hs:2:9-18: Non-exhaustive patterns in [a]

unno@unno-FMVD70GN7G ~/work/bissues/075 
$ ~/prj/bunny/compiler/bin/bunny testrun b075.hs 
/home/unno/prj/bunny/compiler/bin/bunnyc -d ./jout/b075 --xno-implicit-prelude /home/unno/prj/bunny/compiler/bin/../lib/Prelude.hs
/home/unno/prj/bunny/compiler/bin/bunnyc -d ./jout/b075 --xlibrary-path /home/unno/prj/bunny/compiler/bin/../lib b075.hs
'x'