Add srcloc instead of a quoted syntax for casts
This commit is contained in:
parent
a3e25231a6
commit
96e741dc1b
|
@ -114,6 +114,7 @@ This file defines two sorts of primitives. All of them are provided into any mod
|
|||
(only-in racket/base values))
|
||||
(for-syntax
|
||||
racket/lazy-require
|
||||
syntax/location
|
||||
syntax/parse
|
||||
syntax/parse/experimental/template
|
||||
syntax/stx
|
||||
|
@ -316,7 +317,7 @@ This file defines two sorts of primitives. All of them are provided into any mod
|
|||
'cast
|
||||
'typed-world
|
||||
val
|
||||
(quote-syntax #,stx)))
|
||||
(quote-srcloc #,stx)))
|
||||
'feature-profile:TR-dynamic-check #t))
|
||||
#'ty)))
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#;
|
||||
(exn-pred exn:fail:contract? #rx".*produced: 3" #rx".*promised: String.*" )
|
||||
(exn-pred exn:fail:contract? #rx".*produced: 3" #rx".*promised: String.*" #rx"6\\.0")
|
||||
|
||||
#lang typed/racket/base
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user