Quote the identifier in the declaration error msg
Please merge to v6.0 original commit: 34c5b327463db014fb0d3c42922d60e75e4ada63
This commit is contained in:
parent
c95008e2c3
commit
14547ed763
|
@ -46,7 +46,7 @@
|
|||
(unless (or (syntax-e #'top-level?)
|
||||
(identifier-binding #'i))
|
||||
(tc-error/stx #'i
|
||||
"Declaration for ~a provided, but ~a has no definition"
|
||||
"Declaration for `~a' provided, but `~a' has no definition"
|
||||
(syntax-e #'i)
|
||||
(syntax-e #'i)))
|
||||
(syntax-property (syntax/loc stx (begin (quote-syntax (:-internal i ty))
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
(when (box? e)
|
||||
(let ([bnd (identifier-binding id)])
|
||||
(tc-error/expr #:stx id
|
||||
"Declaration for ~a provided, but ~a ~a"
|
||||
"Declaration for `~a' provided, but `~a' ~a"
|
||||
(syntax-e id) (syntax-e id)
|
||||
(cond [(eq? bnd 'lexical) "is a lexical binding"] ;; should never happen
|
||||
[(not bnd) "has no definition"]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#;
|
||||
(exn-pred #rx"Type Checker: Declaration for n provided, but n has no definition")
|
||||
(exn-pred #rx"Type Checker: Declaration for `n' provided, but `n' has no definition")
|
||||
#lang typed/racket
|
||||
|
||||
;; Similar to pr14246.rkt, but for local definitions
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#;
|
||||
(exn-pred #rx"Type Checker: Declaration for n provided, but n has no definition")
|
||||
(exn-pred #rx"Type Checker: Declaration for `n' provided, but `n' has no definition")
|
||||
#lang typed/racket
|
||||
|
||||
;; Test for the error message for unbound module bindings
|
||||
|
|
Loading…
Reference in New Issue
Block a user