[plt-scheme] 4.2.5 breaks define/contract

From: Paulo J. Matos (pocmatos at gmail.com)
Date: Mon Apr 12 04:27:19 EDT 2010

Hi,

Most of my code was broken by 4.2.5 as define/contract now doesn't seem to work:
#lang scheme

(define (test . xs)
  (display xs))

(define/contract (test1 . xs)
  (->* () (number?) void?)
  (display xs))

> (test 1 2)
(1 2)
> (test1 1 2)
. . #<case-lambda-procedure>: no clause matching 2 arguments: 1 2
>

is this a bug or a change in the way define/contract behaves that I
didn't know about?

Cheers,

-- 
PMatos


Posted on the users mailing list.