mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
Decompiler: fix handling of empty 'case-lambda' expressions.
* module/language/scheme/decompile-tree-il.scm (choose-output-names): A <lambda> with no <lambda-case> decompiles into a 'case-lambda' primitive. Ensure that 'case-lambda' is not shadowed by a lexical.
This commit is contained in:
parent
b4a099883d
commit
d9b312af56
1 changed files with 1 additions and 1 deletions
|
@ -697,7 +697,7 @@
|
|||
|
||||
((<sequence> exps) (primitive 'begin) (for-each recurse exps))
|
||||
((<lambda> body)
|
||||
(if body (recurse body)))
|
||||
(if body (recurse body) (primitive 'case-lambda)))
|
||||
|
||||
((<lambda-case> req opt rest kw inits gensyms body alternate)
|
||||
(primitive 'lambda)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue