We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9def040 commit 762c437Copy full SHA for 762c437
typed-racket-lib/typed-racket/private/type-contract.rkt
@@ -547,7 +547,12 @@
547
[(Opaque: p?)
548
(when exact?
549
(eprintf
550
- "warning: Opaque predicates cannot be used as exact decisions yes/no:\n predicate: ~s\n"
+ (string-append
551
+ "warning: cannot safely generate exact predicate for Opaque type\n"
552
+ " consider generating a positive-predicate instead\n"
553
+ " type: ~a\n"
554
+ " pred: ~s\n")
555
+ type
556
(syntax-e p?)))
557
(flat/sc #`(flat-named-contract (quote #,(syntax-e p?)) #,p?))]
558
[(Continuation-Mark-Keyof: t)
0 commit comments