Make for: not allow multiple annotations.
original commit: 6195de66a6ad28451a2391e803124bed8a6c9abc
This commit is contained in:
parent
77762e7742
commit
24218c4ea4
|
@ -803,7 +803,7 @@ This file defines two sorts of primitives. All of them are provided into any mod
|
|||
(syntax-parse stx #:literals (: Void)
|
||||
;; the annotation is not necessary (always of Void type), but kept
|
||||
;; for consistency with the other for: macros
|
||||
[(_ (~seq : Void) ...
|
||||
[(_ (~optional (~seq : Void))
|
||||
;; c is not always an expression, could be a break-clause
|
||||
clauses c ...) ; no need to annotate the type, it's always Void
|
||||
(let ((body #`(; break-clause ...
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#;
|
||||
(exn-pred "bad syntax")
|
||||
#lang typed/racket/base
|
||||
|
||||
(for: : Void : Void ((i 5))
|
||||
(displayln i))
|
Loading…
Reference in New Issue
Block a user