Add a test case for struct-based match expanders.

Closes PR11617.

Using the taint system, the bug is fixed.

original commit: cd34760a3307839ef6bf08dce25a71fb87f41c97
This commit is contained in:
Vincent St-Amour 2011-06-30 14:21:52 -04:00
parent 45314ee84b
commit 8a0e9249ff

View File

@ -0,0 +1,19 @@
#lang racket/load
(module A typed/racket
(provide (all-defined-out))
(struct: one ([thing : Any]))
(define-match-expander uno
(syntax-rules ()
[(_ x) (one x)]))
(match (one 2)
[(uno dos) dos]))
(require 'A)
(module B typed/racket
(require 'A)
(match (one 2)
[(uno dos) dos]))
(require 'B)