Added a test for define/generic's interaction with marks.

Specifically, in the test, the bound name and the method name have marks on them
that are different from each other and from the original method names in the
enclosing generics group.
This commit is contained in:
Carl Eastlund 2013-07-08 23:56:59 -04:00
parent 886d8ce272
commit fc4c8dd53e
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#lang racket/base
(require racket/generic)
(define-generics thing
(process thing stuff))
(define-syntax-rule (define-thing name)
(struct name []
#:methods gen:thing
[(define-syntax-rule (define-super method)
(define/generic method process))
(define-super super)
(define (process x y)
(super y x))]))
(define-thing type)

View File

@ -18,5 +18,6 @@
"empty-interface.rkt"
"top-level.rkt"
"pr13737.rkt"
"marked.rkt"
"methods.rkt")