[racket] rename-transformer-target, prop:rename-transformer, and contracts

From: Alexander D. Knauth (alexander at knauth.org)
Date: Sun Aug 10 17:19:37 EDT 2014

If I have this program:
#lang racket/base

(module foo racket/base
  (require racket/contract/base)
  (struct foo (id) #:transparent
    #:property prop:rename-transformer (struct-field-index id))
  (provide (contract-out
            [struct foo ([id identifier?])])))
(require 'foo)

(define id #'x)
(rename-transformer-target (foo id))

Then it will return this:
#<syntax ?>
Instead of returning id.  

Is this a bug?

Why wouldn’t this work?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140810/deba68f3/attachment.html>

Posted on the users mailing list.