Subject: bug#38617: should internal defines be callable with incorrect number of args?

From: Christopher Lam <[email-masked]>
Date: Sun, 15 Dec 2019 01:02:41 +0000

See snippet below.
IMHO the second call to add1 should fail. On guile-2.2.6 it does not error
out.
On guile-2.0 it does throw error (as I think it should).
Is this intentional?

=-=-=
(define (main)
  (define (add1 num)
    (+ num 1))
  (display "testing")
  (display (add1 2))
  (display (add1 2 3)))

(main)
=-=-=