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 0f733e2 commit c3645b4Copy full SHA for c3645b4
typed-racket-test/succeed/sequenceof-integer.rkt
@@ -0,0 +1,19 @@
1
+#lang racket/base
2
+
3
+(module typed typed/racket/base
4
+ (provide foo)
5
+ (: foo (-> (U Integer (Sequenceof Integer)) String))
6
+ (define (foo x)
7
+ (if (integer? x)
8
+ (format "I got an integer: ~a" x)
9
+ (error "I did not get an integer: ~a" x))))
10
11
+(module other-typed typed/racket/base
12
+ (provide bar)
13
+ (require (submod ".." typed))
14
+ (define (bar) (foo 0)))
15
16
+(require 'typed
17
+ 'other-typed)
18
+(foo 0)
19
+(bar)
0 commit comments