Skip to content

Commit 2919a9f

Browse files
committed
add a test case for the call to make-direct-method-map in the transforming loop
1 parent a758914 commit 2919a9f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

drracket-tool-test/tests/check-syntax/syncheck-direct.rkt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,29 @@
597597
'((45 60) (118 133))
598598
'((45 60) (152 167))))
599599

600+
(check-equal?
601+
(for/set ([e (in-set
602+
(get-binding-arrows
603+
(string-append
604+
"(module m racket\n"
605+
" (define-local-member-name the-method-name)\n"
606+
" (class* object% ()\n"
607+
" (define/public the-method-name\n"
608+
" (letrec ([f (λ ()\n"
609+
" (the-method-name)\n"
610+
" (send this the-method-name))])\n"
611+
" f))\n"
612+
" (super-new)))\n")))]
613+
;; filter out arrows that don't start on the
614+
;; `the-method-name` that appears inside
615+
;; `define-local-member-name`
616+
#:when (equal? '(45 60) (car e)))
617+
e)
618+
(set
619+
'((45 60) (102 117))
620+
'((45 60) (163 178))
621+
'((45 60) (211 226))))
622+
600623
;
601624
;
602625
;

0 commit comments

Comments
 (0)