Add a test case for struct-based match expanders.
Closes PR11617. Using the taint system, the bug is fixed.
This commit is contained in:
parent
e3c4955ac9
commit
cd34760a33
19
collects/tests/typed-scheme/succeed/pr11617.rkt
Normal file
19
collects/tests/typed-scheme/succeed/pr11617.rkt
Normal 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)
|
Loading…
Reference in New Issue
Block a user