Skip to content

Commit a0ac474

Browse files
committed
test cases for arrows from define-local-member-name
related to racket/racket#4650
1 parent cda4737 commit a0ac474

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

+14
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,20 @@
520520
'((66 77) (92 95)) ;; sketchy; should we eliminate?
521521
'((85 88) (92 95))))
522522

523+
(check-equal? (for/set ([e (in-set
524+
(get-binding-arrows
525+
(string-append
526+
"(module m racket\n"
527+
" (define-local-member-name the-method-name)\n"
528+
" (class object% (define/public (the-method-name x) 0))\n"
529+
" (send #f the-method-name))\n")))]
530+
;; filter out arrows that don't start on `the-method-name`
531+
#:when (equal? '(45 60) (car e)))
532+
e)
533+
(set
534+
'((45 60) (129 144))
535+
'((45 60) (95 110))))
536+
523537
;
524538
;
525539
;

0 commit comments

Comments
 (0)