Add a test case for struct-based match expanders.

Closes PR11617.

Using the taint system, the bug is fixed.
This commit is contained in:
Vincent St-Amour 2011-06-30 14:21:52 -04:00
parent e3c4955ac9
commit cd34760a33

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)