File tree 2 files changed +17
-2
lines changed
tests/typed-racket/succeed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change
1
+ #lang racket/load
2
+
3
+ (module m typed/racket
4
+ (struct: s ())
5
+
6
+ (struct: s2 s ())
7
+ (define: v : Any (s2))
8
+ (provide v))
9
+
10
+ (module n racket
11
+ (require 'm )
12
+ v)
13
+
14
+ (require 'n )
15
+
Original file line number Diff line number Diff line change 14
14
(define (wrap-struct s)
15
15
(define (extract-functions struct-type)
16
16
(define-values (sym init auto ref set! imms par skip?)
17
- (struct-type-info type))
17
+ (struct-type-info struct- type))
18
18
(when skip? (fail s)) ;; "Opaque struct type!")
19
19
(define-values (fun/chap-list _ )
20
20
(for/fold ([res null]
36
36
res)
37
37
imms))))
38
38
(cond
39
- [par (cons fun/chap-list (extract-functions par))]
39
+ [par (append fun/chap-list (extract-functions par))]
40
40
[else fun/chap-list]))
41
41
(define-values (type skipped?) (struct-info s))
42
42
(when skipped? (fail s)); "Opaque struct type!"
You can’t perform that action at this time.
0 commit comments