Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
;;;; scrutinizer-tests in "strict-types" mode | ||
|
||
|
||
;;; #896: internal error due to missing resolution of type-variables | ||
;;; in "initial-argument-types" (scrutinizer.scm) | ||
;;; (reported by Moritz) | ||
|
||
(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)) | ||
|