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:
parent
45314ee84b
commit
8a0e9249ff
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