2021-04-22 16:04:06 +00:00
|
|
|
|
#lang typed/syndicate
|
2019-05-23 15:13:51 +00:00
|
|
|
|
|
|
|
|
|
(require rackunit/turnstile)
|
|
|
|
|
|
|
|
|
|
(define (∀ (ρ) (assert-something! [p : (proc → ★/t #:endpoints (ρ))]))
|
|
|
|
|
(p))
|
|
|
|
|
|
|
|
|
|
(define (test-fun)
|
|
|
|
|
(call/inst assert-something! (lambda () (assert 5))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(check-type test-fun : (proc → ★/t #:endpoints ((Shares Int))))
|
|
|
|
|
|
|
|
|
|
(define (test-call/inst-insertion)
|
|
|
|
|
(assert-something! (lambda () (assert 5))))
|
|
|
|
|
|
|
|
|
|
(check-type test-call/inst-insertion : (proc → ★/t #:endpoints ((Shares Int))))
|