File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 340340 cm2))])])]
341341 [(PStruct n ps)
342342 (match (compile-struct-patterns ps c g (cons #f cm) next 1 )
343- [(list i f cm )
343+ [(list i f cm1 )
344344 (let ((fail (gensym)))
345345 (list
346346 (seq (Mov r8 rax)
358358 (Label fail)
359359 (Add rsp (*8 (length cm)))
360360 (Jmp next))
361- cm ))])]
361+ cm1 ))])]
362362
363363 [(PPred e)
364364 (let ((fail (gensym 'fail )))
Original file line number Diff line number Diff line change 604604 (check-equal? (run '(let ((x 1 )) x x x)) 1 )
605605 (check-equal? (run '(match 1 [1 2 3 ])) 3 )
606606 (check-equal? (run '(system-type)) (system-type))
607+ (check-equal? (run '(struct Foo (x))
608+ '(struct Bar (y))
609+ '(match (Bar 1 )
610+ [(Foo x) #f ]
611+ [(Bar x) x]))
612+ 1 )
607613 )
608614
609615
You can’t perform that action at this time.
0 commit comments