chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] #896: -strict-types fails with forall types (sometime


From: Chicken Trac
Subject: [Chicken-janitors] #896: -strict-types fails with forall types (sometimes)
Date: Mon, 13 Aug 2012 16:45:37 -0000

#896: -strict-types fails with forall types (sometimes)
----------------------+-----------------------------------------------------
 Reporter:  syn       |       Owner:       
     Type:  defect    |      Status:  new  
 Priority:  minor     |   Milestone:  4.8.0
Component:  compiler  |     Version:  4.8.x
 Keywords:            |  
----------------------+-----------------------------------------------------
 {{{

 (define-record bar foo)

 (define-type bar
   (struct bar))

 ;; This breaks with csc -strict-types
 (: foo (forall (x string) (x -> bar)))

 ;; Using this declaration instead of the above makes it work
 ;; (: foo (string -> bar))

 ;; Alternatively, removing this declaration makes it work, too
 (: make-bar (string -> bar))

 (define (foo x) (make-bar x))

 }}}

 Tested with 4.8.0rc2

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/896>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]